Contact Form Error

by 9 replies
10
I am making a new site and I have good knowledge in HTML but PHP is where I'm not too good. This is my site:

Official Review - Contact

See when you try send, it comes up with an error

This is the form.php file:

Anyone have an idea?
#programming #contact #error #form
  • Banned
    [DELETED]
  • Anyone? Pleaseeeeeeee
  • Just tried it, I'm getting a "500 Internal server error". You need to check the error logs of your webserver, most likely there will be some more information about the error.

    You could also try this:

    Replace the current code in form.php with...


    <?php

    var_dump($GLOBALS);

    ?>


    If you still get the error, it's not your code, it's the server configuration.

    Btw, I noticed that you are not doing any input validation...
  • Ok I changed the code to that and now I get this:


    Is it my server? What should I do?
  • If it's not your server configuration then it might be something about your karma. Search within... and check the error logs of the server as well.

    Will this script run?

    <?php

    phpinfo();

    ?>
  • This is what is in my error logs:

  • That's it? There should be errors from today, since we had a couple of them already.
  • Yeah that's all I got. I just wanna get it fixed lol
  • could be a corrupt .htaccess-file... u host it urself (dedicated/vps) or u have a "normal" web hosting account?
  • I'm with hostgator. I just wanna get this sorted

Next Topics on Trending Feed