Quick Contact PHP file not working...

Discussion in 'HTML / PHP / JavaScript / CSS' started by seehawk, Aug 17, 2009.

  1. Site: http://www.seehawkdesign.com

    I have a quick contact form on my home page and a contact page with a form as well. I can't get either form to work properly. When I hit submit, I get a 404 error page saying that the page does not exist. When I test the page off my computer, the PHP page appears. I'm somewhat new to web development and know very little about PHP.

    Any help would be much appreciated.

    Thanks,
    Cary
     
  2. mjp

    mjp

    I pulled your files over to a test account and didn't get a 404...

    But even so, the form didn't work (sent a blank message) because you aren't passing the variables from the input form to the php script.

    Add this to top of the php section of your script, right below <?php :

    $name = $_POST['name'];
    $from = $_POST['from'];
    $subject = $_POST['subject'];
    $body = $_POST['body'];


    The $_POST[] array tells php to take the form input and supply the values to the script.
     
  3. Thanks for the help with the php page. I'm still getting a 404 error. I cleaned out my cache and tried again with same result. Any idea why I'm getting that?
     
  4. mjp

    mjp

    I think we may have to look into something on your site/server. Please open a support ticket and they will escalate it to the sys admins.
     

Share This Page