Your best friend for file transfer.

Fetch application logoFetch

question about email form with php coding (2 posts)

  • Started 13 years ago by Francine Houston
  • Latest reply 13 years ago from Scott McGuire
  • Francine Houston Member

    I created a email form with php coding. The submit button does not submit however it goes to the code I written for the form. I am going to show you the code for it when I press the submit button. Could you help or would I have to speak the web hosting people?


    /"Subject and Email Variables"/

    $emailSubject = 'mMemo to Ms. Stokes!';
    $webMaster ='';

    /'Gathering Data Variables'/

    $nameField = $_POST['name'];
    $emailField = $_POST['email'];
    $messageField =$_POST['message'];

    $body = <<<EOD
    Name: $name

    Email: $email
    Message: $message

    $headers = "From: $email\r\n";
    $header .= "Content-type: text/html\r\n";
    $success = mail{$webMaster, $emailSubject,$body,$headers};

    / * Results rendered as HTML*/

    $theResults = <<<EOD
    <title>Thank you!</title>
    <!-- define some style elements-->
    font-family : Arial, Helvetica, sans-serif;
    font-size : 16px;
    font-weight : bold;
    font-family : Arial, Helvetica, sans-serif;
    font-size : 12px;

    <!-- a helper script for vaidating the form-->

    <h1>Thank you!</h1>
    Thank you for submitting the form. We will contact you soon!

    echo "$theResults";



    Posted 13 years ago #

  • Scott McGuire Administrator

    Hi Francine,

    No, sorry, this is not something we can help with - we're not PHP experts, and problems with form submission are not related to Fetch, they're related to the code or the server.


    Scott McGuire
    Fetch Softworks

    Posted 13 years ago #


  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.