Forum Moderators: coopster

Message Too Old, No Replies

Submitting a Form to write a file opens Dreamweaver php file

Instead of writing a new file to the browser

         

skibum

7:38 pm on Jun 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On a local XAMPP setup on Vista. Is this likely to be a server setup issue config file or something within the code?

coopster

7:47 pm on Jun 21, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



So when you click submit in the browser, what does your server-side code produce? A PHP file that is sent back to you? If so, and that file has a .php extension and you have told Windows Vista that DW is your default handler for files with a .php extension then yes, DW is going to open that file.

skibum

8:06 pm on Jun 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It was the way I was loading the files in the browser. Was using this path:

C:\xampp\htdocs\file.html and submitting that instead of

http;//localhost/folder/file.php

so it was calling Dreamweaver to open it instead of the server processing it I guess. Slowly trying to get the hang of ths stuff. :)

coopster

8:28 pm on Jun 21, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Yeah, opening the file in your browser via the filesystem path rather than through your HTTP server is something you will want to make sure you don't do, you just aren't going to get the same effect you want :)

Your assumptions are spot on, the server won't process the submission because you are not using the http protocol when viewing the html form from a filesystem path and don't have a full url in the action attribute of your form element.