HighDots Forums  

[Q] How to setup DW to execute php scripts

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss [Q] How to setup DW to execute php scripts in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael T. Peterson
 
Posts: n/a

Default [Q] How to setup DW to execute php scripts - 08-06-2004 , 01:53 PM






Hi,

I know this must be really obvious to many of you, but I have been unable to
configure DW (using [preferences] or [site->edit]) so that it will execute a
php script from a <form action="foo.php"...> tag. When the submit button is
clicked the php file is displayed, rather than executed.

Here's the HTML code:

<form action="update_river_measurements.php" method="post" name="form1"
target="mainFrame">
<select name="interval_period">
<option>Select interval</option>
<option value="2">2 days</option>
<option value="4">4 days</option>
<option value="8">8 days</option>
<option value="31">31 days</option>
</select>
<input type="submit" value="Update Database">
</form>

When the [Update Database] button is clicked, the file specified by the
action parameter is displayed, rather than executed.

My dev machine is a Windows XP system with Apache, PHP, and MySQL installed.
I have confirmed that my Apache-PHP configuration is correctly configured.
For example, PHP correctly executes the script when I pass
"update_river_measurements.php" to IExplore.exe from the command line. Also,
when I upload these local files to my ISP, the PHP also executes correctly.

Any suggestions as to how to get DW to execute these files would be
appreciated.

Cheers,

Michael




Reply With Quote
  #2  
Old   
Gary White
 
Posts: n/a

Default Re: [Q] How to setup DW to execute php scripts - 08-06-2004 , 07:08 PM






Michael T. Peterson wrote:

Quote:
Any suggestions as to how to get DW to execute these files would be
appreciated.

How do you have your testing server defined? Make sure that you put
http://localhost/ or whatever you have set for the site in Apache as the
URL prefix.


Gary


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.