Jump to content

so i have a script that is broken


enti7y

Recommended Posts

there is a php script on my flash site.. the purpose is for a mail sender that is coded into one of my pages and when you click "send" i is supposed to send the message to the linked mail address, that and forward to a page that notifies you that the message was sent. you can view this site at vettexperts.com after you send a message on the contact page is links to a broken link.. and the url shows vettexperts.com/contact.php when it should be vettexperts.com/_contact_message.htm

 

the script is as follows.. if someone could guide me onto filling in the blanks it would be of much help.

 

<?

 

$your_email = "[email protected]";

 

$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";

$headers.='Content-type: text/html; charset=utf-8';

mail($your_email, $_POST['subject'],  "

<html>

<head>

<title>Contact Message</title>

</head>

<body>

Contact Message<br><br>

Name : ".$_POST['name']."<br>

Email : ".$_POST['email']."<br>

Telephone : ".$_POST['telephone']."<br><br>

Subject : ".$_POST['subject']."<br>

Message : <br>".$_POST['message']."<br>

</body>

</html>" , $headers);

$header("Location: ./index.htm?page=_contact_message.htm");

?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/111046-so-i-have-a-script-that-is-broken/
Share on other sites

It's actually not a 404, it's a 405.  Here are the HTTP response headers:

 

HTTP/1.x 405 Method not allowed
Server: Microsoft-IIS/5.0
Date: Fri, 20 Jun 2008 04:56:29 GMT
Allow: OPTIONS, TRACE, GET, HEAD
Content-Length: 3923
Content-Type: text/html
Connection: Keep-Alive

 

It is saying that posting is not allowed to your webserver.  So you will need to enable posting.  I don't know how that is done in IIS unfortunately, but I'm sure you can work it out!  Or ask someone who does now.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.