enti7y Posted June 20, 2008 Share Posted June 20, 2008 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 = "example@example.com"; $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"); ?> Quote Link to comment Share on other sites More sharing options...
btherl Posted June 20, 2008 Share Posted June 20, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.