This is my first attempt to use PHP ever, just FYI! I am using some php code from here And every time I try to use the form, I get an error message:[code]The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
* Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
* If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
* Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
Technical Information (for support personnel)
* Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
* Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.[/code]I've done quite a bit of searching today on this solution and played around in the account privileges and so forth but to no avail. Here is the exact code in my HTML file:[code]<link rel="stylesheet" type="text/css" href="iframe.css" media="screen"/>
MBD Tech-Support
<p>Please fill out the form below to submit feedback.</p><BR>
<form action="mail.php">
<b>Name:</b><br />
<input type="text" name="nickname" value="Your Name" /><br /><br />
<b>E-mail:</b><br />
<input type="text" name="email" value="Your E-mail address" /><br /><br />
<b>Message:</b><br />
<textarea name="message" rows="5" cols="50"></textarea><br />
<input type="hidden" name="ip" value="<? echo $REMOTE_ADDR; ?>" />
<input name="Submit" type="submit" value="Submit" />
<input name="Submit" type="reset" value="Reset" />
</form>
if($nickname == “” || $message == “” || $email == “”){
echo $error;
}
elseif($ip == “”){
echo “Sorry, an unknown error has occured”;
}
else{
$yourwebsite = “http://techsupport”;
$recipientname = “David”;
$subject=“Tech-Site feedback”;
$recipient="[email protected]"; // changed email for this post
$header = “From: $nickname <$email>rn”;
$header .= “MIME-Version: 1.0rn”;
$header .= “Content-Type: text/html; charset=iso-8859-1rn”;
$header .= “X-Priority: 3rn”;
$header .= “X-MSMail-Priority: Normalrn”;
$header .= "X-Mailer: PHP / ".phpversion().“rn”;
$content= "
Dear $recipientname, $nickname has sended you an e-mail from $yourwebsite.
Message:
$message
You can contact $nickname back at $email.";
mail($recipient, $content, $header);
echo “Thanks! Your e-mail has been sended succesfull $nickname. We will contact you back on $email ASAP”;
}[/code]Any help on this would be just awesome