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

Home Forums Back End PHP Form Issues

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #32742

    So I have a simple enough form:



    We find that we can make your website, business site, or blog better by getting a feel for both
    yourself and your idea. By filling out this form, you can help us do just that!
    Please follow the tabs below and fill out the basic information and we will contact
    shortly with a quote. Thanks!

    Your Info

    Your Site

    Useful Info


    Please review the information that you have entered. If filled out correctly, there
    should be no red check marks left. Just hit the button below to send off your form, and
    we will contact you soon!

    And then the php that handles it (mailer.php) is here:

    if(isset($_POST)) {

    $to = "[email protected]";
    $subject = "New Quote Request: " . $_POST;
    $name_field = $_POST;
    $email_field = $_POST;
    $phone_field = $_POST;
    $address_field = $_POST;
    $reason = $_POST;
    $subject_field = $_POST;
    $title_field = $_POST;
    $budget_field = $_POST;
    $logo_field = $_POST;

    $body = "From: $name_fieldn E-Mail: $email_fieldn Phone Number: $phone_fieldn Address: $address_fieldn Reason For Website: $reason_fieldn Site Subject Matter: $subject_fieldn Title of Site: $title_fieldn Budget: $budget_fieldn Do They Have a Logo: $logo_field";

    echo "It worked!";
    mail($to, $subject, $body);

    } else {

    echo "Not working(test Purposes)";


    I keep getting the “not working” I had for failure.

    Does anybody see anything that I do not?


    Try changing


    because here

    if(isset($_POST)) {

    its looking for “submit”. But there is no submit tos it displays the “not working”

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