Micro Niche Builder
Closed Thread
Results 1 to 3 of 3

Thread: cant get email contact us form to work

  1. #1

    Default cant get email contact us form to work

    hey im new to building websites and have recently added a new email us page to it. after configuring the code and uploading, i test the email and it comes up with code error on line 97 being the end of the code. can anyone enlighten me?


    Cheers


  2. Micro Niche Builder

  3. #2

    Default

    Can you give more details please? Which language you are using whats there on your line no 97? If possible please post code here so we can help

  4. #3

    Default

    here is the code


    <?php

    /* Subject and Email Variables */

    $emailSubject = 'EmailMe!';
    $webMaster = 'my email address';

    /* Gathering Data Varibles */

    $emailField = $_POST['email'];
    $nameField = $_POST['name'];
    $phoneField = $_POST['phone'];


    $commentsField = $_POST['comments'];


    $body = <<<EOD
    <br><hr><br>
    Email: $emailField <br>
    Name: $nameField <br>
    Phone Number: $phoneField <br>


    Comments: $commentsField <br>

    EOD;

    $headers = "From: $emailField\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $emailsubject, $body, $headers);

    /* Results rendered as HTML */

    $theResults = <<<EOD
    !<html>
    <head>
    <title>Elecsmart Email Us's</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    <html>
    <head>
    <title>Winterbourne how to's</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    <html>
    <head>
    <title>Winterbourne how to's</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    body {
    background-color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-style: normal;
    line-height: normal;
    font-weight: normal;
    color: #666666;
    text-decoration: none;
    }
    body,td,th {
    color: #FFFFFF;
    }
    a:link {
    color: #BF2F68;
    text-decoration: none;
    }
    -->
    </style>
    <link href="../Elecsmart site for real!!!!/Contact Form/images/favicon.ico" rel="icon">
    <style type="text/css">
    <!--
    a:visited {
    color: #BF2F68;
    text-decoration: none;
    }
    a:hover {
    text-decoration: underline;
    }
    a:active {
    text-decoration: none;
    }
    .style1 {color: #BF2F68}
    -->
    </style></head>

    <div>
    <div align="left">
    <p align="center"><img src="../ELECSMART-WEBAPGE-2-_02.jpg" width="685" height="282"></p>
    <p align="center">Thank you for your interest! Your email has been recieved and will be answered very soon! </p>
    <p align="center">&nbsp;</p>
    </div>
    </div>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p>&nbsp;</p>
    </body>
    </html>

    ?>

Closed Thread

Similar Threads

  1. Creating a file upload form with PHP
    By gilbertsavier in forum PHP Help
    Replies: 1
    Last Post: 08-25-2009, 09:23 AM
  2. Flash contact us form
    By urvisoni in forum Design and Development
    Replies: 4
    Last Post: 07-31-2009, 09:35 AM
  3. Roboform- Form Filling replacing human
    By learn2earn in forum Web Directories
    Replies: 0
    Last Post: 03-04-2009, 10:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts