Skip to main content
Inspiring
March 19, 2020
Question

Code changes in PHP files without edits

  • March 19, 2020
  • 2 replies
  • 1149 views

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 has been closed for replies.

2 replies

Nancy OShea
Community Expert
Community Expert
March 26, 2020

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 >

 

Nancy O'Shea— Product User & Community Expert
Jon Fritz
Community Expert
Community Expert
March 19, 2020

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.

jacsdadAuthor
Inspiring
March 19, 2020

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?

Jon Fritz
Community Expert
Community Expert
March 19, 2020

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