tags:

views:

18

answers:

1

there is is this

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.

Error 404
127.0.0.1
08/13/10 16:00:12
Apache/2.2.15 (Win32) PHP/5.3.2 

and the code is this

<html>
<head>
<title> new request</title>
<form action="mail.php" method="post">
<label for="email">your friend email</label>
<input name="email" type="edit"/>
<input type="submit" value="send link to friend"/>
</form>
<?
if (isset($_POST('email')) {
  if (!mail($_POST('email'), "Site linkbox", "check this link " . 

$_SERVER['HTTP_REFERER'])) {
    echo "I couldn't send email, sorry.";
  }
}

?>


</html>
</head>
+1  A: 

From what you have posted, I think the problem is that you don't have a mail.php file for the form to be sent to when you click submit. That would be the logical cause of this as you are trying to send when you click submit, it's submitting to mail.php, and can't find it.

gabe3886