Skip to main content
Inspiring
Mar 19, 2020 2:43 PM UTC
Question

Code changes in PHP files without edits

Within many of my php webpage files,  the code (this is one example) has changed from <form action="../mailer.php" method="POST" enctype="multipart/form-data" autocomplete="off" to <form action="file:///Macintosh HD/Users/user_name/Desktop/Imagine/mailer.php" method="POST" enctype="multipart/form-data" autocomplete="off" (note: the user_name is my system User Name)

 

I have not modified the files to alter this, it just happens.

 

Any thoughts as to why this is occurring and what I can do to ensure it does not reoccur inthe future?

 

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

Nancy OShea
Community Expert
Community Expert
Mar 26, 2020 11:38 PM UTC

Save often with Ctrl / Cmd + S.

When assets are added to an unsaved file, you will see things like this until the file is saved.  See screenshots below

 

Image inserted into an unsaved file:

 

After saving, path resolves to document or site root relative depending on which you chose in site settings.

 

Site > Manage Sites >

 

Translate
Nancy O'Shea— Product User & Community Expert
Jon Fritz
Community Expert
Community Expert
Mar 19, 2020 3:27 PM UTC

Do you have a Site Definition chosen in your Files Window?

DW doesn't know how to handle links on pages not saved within a Defined Site, so will use an absolute path to the location of the file on your HD.

Translate
jacsdadAuthor
Inspiring
Mar 19, 2020 5:24 PM UTC

Thanks for your response.  Being new to Dreamwaever, I'm not always certian I understand some of the terms used.

 

If you are referring to the folder where y files are stored,when I view the list (right panel)  and within Manage Site, then Yes.  

 

Otherwise, can you explain how I can find what you are askng for?

Translate
Jon Fritz
Community Expert
Community Expert
Mar 19, 2020 5:40 PM UTC

Ah, OK.

Step 1 with DW is to create a Site Defintion. It's a simple first step that allows the program to do a lot of automated tasks for you, especially regarding site maintenence. Even if you're not planning to upload, or working on html emails, DW still wants a Site Defintion to work with...

https://helpx.adobe.com/dreamweaver/how-to/define-a-dreamweaver-site.html

Translate