Solved: php email form help

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Dr.Zoidberg

Thread Starter
Joined
Nov 21, 2008
Messages
56
Hello,

I keep getting a 500 internal server error on a website I am currently designing. PHP5 is enabled and the php file is in the same directory as the contact us page. http://www.pantheonhomes.net/content/Contact Us.html

Form code
Code:
    <form method="POST" action="sendmail.php" name="Contact Form" id = "Contact Form">
      <p>
        <label>Name :
        <input name="Name" type="text" id="Name" size="20" maxlength="50"/>
        </label><br /><br />
        <label>Email : 
        <input name="Email" type="text" id="Email" size="20" maxlength="50" />
        </label><br /><br />
        <label>Contact Number :
        <input name="Contact" type="text" id="Contact" size="10" maxlength="15" />
        <br />
        </label>
      </p>
      <p>
        <label>Your Enquiry : <br />
        <textarea name="enquiry" id="enquiry" cols="21" rows="5"></textarea>
        </label>
      </p>
      <p>
        <label>
        
            
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" id="submit" value="Submit"/>
           
        </label>
      </p>
    </form>
sendmail.php
Code:
<?php
  
  $to  =   "*";
  $name = $_REQUEST['Name'] ;
  $email = $_REQUEST['Email'] ;
  $contact = $_REQUEST['Contact'] ;
  $enquiry = $_REQUEST['enquiry'] ;
  
  $body  =  "From: $name\n E-Mail: $email\n Contact: $contact\n Message:\n $enquiry";

  mail( $to, "Panthon Website Contact Form", $body, "From: $Email" );
  exit;

?>

    
    
    <br />
    <p>Thank you for your email. Please click <a href="../index.html">here</a> to return to the homepage if you are not automatically redirected.</p>
Thanks for any help!(y)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top