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 = "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");

?>

 

 

Link to comment
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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.