Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP mail form help on IIS

Status
Not open for further replies.
Nov 18, 2002
4
US
I am a total newb, and was wondering if anyone can point me in the right direction.

I have php 4x installed on NT 4 using IIS as my webserver. PHP works for my test.php file and my guestbook. I found a few mail form scripts on the hotscripts, and I have tried three different ones, all with the same results. My html form page uses <form action=&quot;/php/phpcontact/feedback.php&quot; method=&quot;post&quot; name=&quot;feedback&quot;> and the feedback.php file is located in the same directory. When I open the html form page and hit submit, I get a 404 page not found, with the url pointing to mydomain.com/php/phpcontact/feedback.php.

Does anyone have any hints as to what I can do to get the feedback.php to process the form?

Thanks in advance,
JB
 

If the php file is in the same directory,specify

Code:
<form action=&quot;feedback.php&quot; method=&quot;post&quot; name=&quot;feedback&quot;>



--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
This doesn't sound like a script problem to me. It sounds like a path or permissions problem.

If the HTML page and the feedback.php are in the same directory, then the URL for the HTML page should be &quot;mydomain.com/php/phpcontact/htmlpage.html&quot;. Is this correct?

What are the permissions on feedback.php and the directory in which it resides? Do other PHP scripts in the same directory run correctly?

Want the best answers? Ask the best questions: TANSTAAFL!!
 
form action=&quot;/php/phpcontact/feedback.php

this looks like the problem - don't put the '/' infront of php/phpcontact/.... instead do this:

form action=&quot;php/phpcontact/feedback.php&quot;

or use the FULL PATH instead of the relative one.

Rocco is the BOY!!

SHUT YOUR LIPS...
ROCCOsm.gif
 
spookie, sleipnir, and OSR - thanks for the replies.

My test.php, <?php phpinfo(); ?> ,does run in that directory, I get all my system and PHP info displayed.

As far as changing the path, same result - page cannot be found - for each of the below:
form action=&quot;
form action=&quot;feedback.php&quot;

form action=&quot;php/phpcontact/feedback.php&quot;

Sleipnir - I am not 100% sure what the permissions are...the box is at home and I'm at work (ftp'ing files back and forth).

I think that my IUSER account has both read and execute rights for both the form and the php and phpcontact directories.

What should the permissions be, and do you think there is there anything that I need to change through the IIS Management Console?

FYI - I tried two other mail form scripts last night, and each gives me the same &quot;404 page connot be found&quot; when I hit submit...I am balding faster than I should be at my age, as I am starting to rip my hair out!!!

Thanks again,
JB
 
By any chance would the feedback.php or the directories it reside in need IUSER_machinename to have write access?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top