Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Contact form

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37710
    tannercampbell
    Participant

    Forms … I know I hate ’em.

    http://tannercampbell.net the contact tab. Can’t get the contact form to function. Here’s the html















    and here’s the form.php

    
    if(isset($_POST)) {
    $to = "[email protected]";
    $subject = "Contact from TC.net";
    $name_field = $_POST;
    $email_field = $_POST;
    $message = $_POST;

    $body = "From: $name_fieldn E-Mail: $email_fieldn Message:n $message";

    echo "Data has been submitted to $to!";
    mail($to, $subject, $body);
    } else {
    echo "You broke it! Try again!";
    }
    ?>

    What have I missed?

    #101499
    TheDoc
    Member

    What’s happening when you submit?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.