Grow your CSS skills. Land your dream job.

Building a unique contact form (from CSS Tricks) HELP

  • # May 21, 2009 at 2:14 am

    Hi,

    I have followed the tutorial on CSS tricks for a php/jquery contact form. Apparently everything is working but I can’t get the form to contact my email.
    Here is the page:
    http://www.casciellogroup.com/contatta.html

    When I am testing the form from the website after the submission I see the confirmation page but nothing in my email.
    This is the php:

    <?php

    // CHANGE THE VARIABLES BELOW

    $EmailFrom = "GMEOCOLOMBO@YAHOO.COM";
    $EmailTo = "GMEOCOLOMBO@YAHOO.COM";
    $Subject = "Contatto dal Sito";

    $Name = Trim(stripslashes($_POST));
    $Tel = Trim(stripslashes($_POST));
    $Email = Trim(stripslashes($_POST));
    $Message = Trim(stripslashes($_POST));

    // prepare email body text
    $Body = "";
    $Body .= "Name: ";
    $Body .= $Name;
    $Body .= "n";
    $Body .= "Tel: ";
    $Body .= $Tel;
    $Body .= "n";
    $Body .= "Email: ";
    $Body .= $Email;
    $Body .= "n";
    $Body .= "Message: ";
    $Body .= $Message;
    $Body .= "n";

    // send email
    $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");

    // redirect to success page
    // CHANGE THE URL BELOW TO YOUR "THANK YOU" PAGE
    if ($success){
    print "<meta http-equiv="refresh" content="0;URL=approvazione.html">";
    }
    else{
    print "<meta http-equiv="refresh" content="0;URL=errore.html">";
    }
    ?>

    With firefox web developer you can see the javascript attached to the page.

    I don’t understand what I am doing wrong. Thanks

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".