Help making a Contact Form work.

Hi I need help coding a contact form.  I have the
website finished and all i need to do now is code the contact form.  I don't lnow what to do when it is in Flash
builder.  Help and syggestions would be greatly appreciated.
The website is :  http://www.marinocarrabs.com/
Thanks

Thank yoiu for that suggestion, it actually worked.. I appreciate it.
I used this tutorial:  http://www.republicofcode.com/tutorials/flash/as3contactform/
Thank you

Similar Messages

  • Making Contact Form Work?

    Greetings,
    I have set up a contact form on one of my web pages that consists of Name, Email and Comments with a Submit button. I am wondering how I can get it to actually work! I've done some online research but have come up empty handed. Any help on this matter would be greatly appreciated. Thanks in advance!
    Site: www.gatespassmusic.com
    (Contact Page)
    Best,
    Anthony S.

    You need some server-side scripting to make it work.
    Have a look here:
    http://myphpform.com/php-form-tutorial.php
    Ken Ford

  • Making a Contact Forms Anti-Spam Work

    I can't get this anti-spam .php code to work, Important Note: The coding worked before I added the anti-spam label/.php coding. Any obvious faults in the coding?
    HTML:
    <link rel="stylesheet" href="css/site-feedback-part-two.php" type="text/css" media="screen" />
        <form method="post" action="site-feedback-part-two.php">
       <label>Name</label>
        <input name="name" placeholder="Type Here">
        <label>Email *</label>
        <input name="email" type="email" placeholder="Type Here">
        <label>Suggested Feedback *</label>
        <textarea name="message" placeholder="Type Here"></textarea>
        <label>What is (20+5)/5? (Anti-spam) *</label>
      <input name="human" placeholder="Type Here">
        <div><input id="submit" name="submit" type="submit" value="Submit"></div>
            </form>
    PHP:
    <?php
        $name = $_POST['name'];
        $email = $_POST['email'];
        $message = $_POST['message'];
        $from = 'From: Contact Form';
        $to = '[email protected]';
        $subject = 'Site Feedback';
        $body = "From: $name\n E-Mail: $email\n Message:\n $message";
    if ($_POST['submit']) {
    if (&& $human == '5') {
        if (mail ($to, $subject, $body, $from)) {
            echo '<p>Your message has been sent!</p>';
        } else {
            echo '<p>Something went wrong, go back and try again!</p>';
      } else {
      ($_POST['submit'] && $human != '5') {
        echo '<p>You answered the anti-spam question incorrectly! This means that your message has not been sent</p>';
    ?>
    Thanks for the help.

    <?php
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
    $from = 'From: Contact Form';
    $to = '[email protected]';
    $subject = 'Site Feedback';
    $body = "From: $name\n E-Mail: $email\n Message:\n $message";
    if(isset($_POST['submit'])) {
    if($_POST['human'] != 5) {
    echo '<p>You answered the anti-spam question incorrectly! This means that your message has not been sent</p>';
    elseif ($_POST['human'] == 5) {
    mail($to, $subject, $body, $from);
    echo '<p>Your message has been sent!</p>';
    else {
    echo '<p>Something went wrong, go back and try again!</p>';
    ?>

  • Making a Contact Form w/ Flash 5

    Hi,
    I searched the site first and did find a downloadable
    pre-made contact form that works with Flash, but I don't know that
    it will work with my ancient version since it uses PHP to mail the
    form. I use flash for drawing more than anything and don't know a
    whole lot about actionscript. I'm building a new website however,
    and would like to include a flash form for people to contact me
    through rather than email. I assume this can be done with Flash 5
    using some sort of send form action but I could use a little help
    in figuring this one out.
    Thanks

    http://www.flash-db.com/Tutorials/email/

  • I Need Dire Help Making a Flash Form

    Hello, I need some serious help creating a Flash Form.
    I Have used a template from another site with the following
    input boxes:
    Name: __________
    Email: __________
    Comments: ____________
    However, i had the script working fine, along with its php
    script,
    when i was trying to add more "text" boxes, i must have
    messed the script up somhow.
    When I submit that form, the name is send and email, but the
    email is blank.. ie, there is no "comments"
    here is the code:
    on submit button:
    on (release) {
    // send variables in form movieclip (the textfields)
    // to email PHP page which will send the mail
    form.loadVariables("email.php", "POST");
    sent email messege
    onClipEvent(data){
    // show welcome screen
    _root.nextFrame();
    and the php script (mailer.php)
    php form email.pho
    <?php
    * PHP 4.1.0+ version of email script. For more
    * information on the mail() function for PHP, see
    http://www.php.net/manual/en/function.mail.php
    // First, set up some variables to serve you in
    // getting an email. This includes the email this is
    // sent to (yours) and what the subject of this email
    // should be. It's a good idea to choose your own
    // subject instead of allowing the user to. This will
    // help prevent spam filters from snatching this email
    // out from under your nose when something unusual is put.
    $sendTo = "[email protected]";
    $subject = "My Flash site reply";
    // variables are sent to this PHP page through
    // the POST method. $_POST is a global associative array
    // of variables passed through this method. From that, we
    // can get the values sent to this page from Flash and
    // assign them to appropriate variables which can be used
    // in the PHP mail() function.
    // header information not including sendTo and Subject
    // these all go in one variable. First, include From:
    $headers = "From: " . $_POST["firstName"] ." ".
    $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
    // next include a replyto
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    // often email servers won't allow emails to be sent to
    // domains other than their own. The return path here will
    // often lift that restriction so, for instance, you could
    send
    // email to a hotmail account. (hosting provider settings may
    vary)
    // technically bounced email is supposed to go to the
    return-path email
    $headers .= "Return-path: " . $_POST["email"];
    // now we can add the content of the message to a body
    variable
    $message = $_POST["message"];
    // once the variables have been defined, they can be included
    // in the mail function call which will send you an email
    mail($sendTo, $subject, $message, $headers);
    ?>
    If anyone can see why the "comments" section is not being
    sent?
    Also: My original problem was how do you add more text boxes.
    I want something like this:
    Name:
    Address:
    Phone:
    Mobile:
    Email:
    Website:
    Comments:
    Ive spent days and days trying to work out how to first make
    a form that actually works, then add more text fields
    Ive looked at many basic form tutorials, but they all seem to
    only have 3 or 4 text fields.. Name, Email, Comments... etc
    I haven't a clue how to edit the script both in action script
    and php to add more fields easy.
    I really need some help with this, its turning into a
    nightmare for me.
    I can provide someone with my .fla project file if they care
    to take a look at what im doing wrong.
    Thanks
    Pan
    ps. Please note: "$sendTo = "[email protected]";" =
    this line i know i must put in my own email.

    This is all about timelines. It seems there is a movieclip
    named 'form' (or possibly an actionscript object, can't tell). Any
    variables created on that timeline are sent.
    So you could have your new textfields on another timeline.
    Or you could have textfields with no instance name in the
    form timeline.
    Those are the first two things to look at. Post the FLA and
    we can tell you more specifically.

  • Help with a contact form script

    I have this contact form but it doesn't send the email
    this is the page www.vonhaucke.mx
    and the script for contacto.php is:
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>.:vonhaucke:.</title>
    <link href="contacto.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <table align="center" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="372"> </td>
        <td width="278" class="margen"><div id="logo" class="logo"><img src="img/logovonhaucke.png" width="228" height="71" alt="Vonhaucke" title="Vonhaucke"></div></td>
      </tr>
      <tr>
        <td style="border-bottom:#CCC solid 1px; border-top:#CCC solid 1px;"><h1>Contacto</h1></td>
        <td style="border-bottom:#CCC solid 1px; border-left:#CCC solid 1px; border-top:#CCC solid 1px;"> </td>
      </tr>
      <tr>
        <td valign="top" align="right">
      <div id="contact" align="right">   
      <form action="enviar.php" method="post">
      <label for="name">Nombre:</label>
      <input type="text" name="nombre" /><br />
      <label for="name">Apellido:</label>
      <input type="text" name="apellido" /><br />
      <label for="name">Empresa:</label>
      <input type="text" name="empresa" /><br />              
      <label for="email">Email:</label>
      <input type="email" name="mail" /><br />
      <label for="name">Página web:</label>
      <input type="text" name="web" /><br />
      <label for="name">Teléfono:</label>
      <input type="text" name="telefono" /><br />                       
      <label for="message">Comentarios:</label>
      <textarea name="comentarios"></textarea><br />
      <input type="submit" value="Enviar" />
      </form>
        </div>
        </td>
        <td class="margen">
            <div id="direccion">
                <strong>Sala de Exhibición y Oficinas</strong><br />Paseo de la Reforma 284 PH<br />
                Col. Juárez Del Cuauhtémoc<br />06600 México DF<br />T :: 5999 9200<br />
               www.vonhaucke.mx<br />       
                <strong>Aguascalientes</strong><br />T :: 014499145150.<br />E-mail :: [email protected]<br />
                <strong>Bajio</strong><br />T :: 014422150577.<br />E-mail :: [email protected]<br />
                <strong>Cancún</strong><br />T :: 019988920272.<br />E-mail :: [email protected]<br />
                <strong>Hidalgo</strong><br />T :: 0445539243356.<br />E-mail :: [email protected]<br />
                <strong>Puebla</strong><br />T :: 012224661905.<br />E-mail :: [email protected]<br />
                <strong>Toluca</strong><br />T :: 017222714990.<br />E-mail :: [email protected]<br />
                <strong>Nueva York</strong><br />(800) 7113572<br />Sherry Mitchel Inc. Vonhaucke<br />P.O. Box 3035<br />Sea Bright, N,J. 07760
            </div> <br />
        </td>
      </tr>
      <tr>
        <td colspan="2" align="center">
        <div id="ubicacion">Paseo de la Reforma 284 PH, Col. Juárez, Del. Cuauhtémoc, C.P. 06600, México D.F. T.(55) 5999 9200, e-mail. [email protected]</div>
        </td>
      </tr>
    </table>
    </body>
    </html>
    the script for enviar.php is
    <?php
    $nombre = $_POST['nombre'];
    $apellido=$_POST['apellido'];
    $empresa = $_POST['empresa'];
    $mail = $_POST['mail'];
    $web = $_POST['web'];
    $telefono = $_POST['telefono'];
    $comentarios = $_POST['comentarios'];
    $header = 'From: ' . $mail . " \r\n";
    $header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
    $header .= "Mime-Version: 1.0 \r\n";
    $header .= "Content-Type: text/plain";
    $mensaje = "Este mensaje fue enviado por " . $nombre ." ". $apellido. ", de la empresa " . $empresa . ", Sitio web: " . $web . " \r\n";
    $mensaje .= "Su e-mail es: " . $mail . " \r\n";
    $mensaje .= "Mensaje: " . $_POST['comentarios'] . " \r\n";
    $mensaje .= "Enviado el " . date('d/m/Y', time());
    $para = '[email protected]';
    $asunto = 'Comentarios desde sitio web: vonhaucke';
    mail($para, $asunto, utf8_decode($mensaje), $header);
    //echo 'Mensaje enviado correctamente';
    ?>
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>.:vonhaucke:.</title>
    <link href="contacto.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <table align="center" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="372"> </td>
        <td width="278" class="margen"><div id="logo" class="logo"><img src="img/logovonhaucke.png" width="228" height="71" alt="Vonhaucke" title="Vonhaucke"></div></td>
      </tr>
      <tr>
        <td style="border-bottom:#CCC solid 1px; border-top:#CCC solid 1px;"><h1>Contacto</h1></td>
        <td style="border-bottom:#CCC solid 1px; border-left:#CCC solid 1px; border-top:#CCC solid 1px;"> </td>
      </tr>
      <tr>
        <td valign="top" align="right">
      <div id="contact" align="right">   
      <form action="#" method="post">
      <p align="center">Mensaje enviado correctamente</p>
            <input type="button" onClick="parent.$.modal().close()" value="Cerrar">
      </form>
        </div>
        </td>
        <td class="margen">
            <div id="direccion">
                <strong>Aguascalientes</strong><br />T :: 014499145150.<br />E-mail :: [email protected]<br />
                <strong>Bajio</strong><br />T :: 014422150577.<br />E-mail :: [email protected]<br />
                <strong>Cancún</strong><br />T :: 019988920272.<br />E-mail :: [email protected]<br />
                <strong>Hidalgo</strong><br />T :: 0445539243356.<br />E-mail :: [email protected]<br />
                <strong>Puebla</strong><br />T :: 012224661905.<br />E-mail :: [email protected]<br />
                <strong>Toluca</strong><br />T :: 017222714990.<br />E-mail :: [email protected]<br />
                <strong>Nueva York</strong><br />(800) 7113572<br />Sherry Mitchel Inc. Vonhaucke<br />P.O. Box 3035<br />Sea Bright, N,J. 07760
            </div> <br />
        </td>
      </tr>
      <tr>
        <td colspan="2" align="center">
        <div id="ubicacion">Paseo de la Reforma 284 PH, Col. Juárez, Del. Cuauhtémoc, C.P. 06600, México D.F. T.(55) 5999 9200, e-mail. [email protected]</div>
        </td>
      </tr>
    </table>
    </body>
    </html>
    I don't know why is not sending the email to [email protected]

    Your script works ok when I test it out - the information is sent to the specified email address - although I don't know what the below code has to do with it all? (I've blanked the email addresses to avoid spam)
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>.:vonhaucke:.</title>
    <link href="contacto.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <table align="center" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="372"> </td>
        <td width="278" class="margen"><div id="logo" class="logo"><img src="img/logovonhaucke.png" width="228" height="71" alt="Vonhaucke" title="Vonhaucke"></div></td>
      </tr>
      <tr>
        <td style="border-bottom:#CCC solid 1px; border-top:#CCC solid 1px;"><h1>Contacto</h1></td>
        <td style="border-bottom:#CCC solid 1px; border-left:#CCC solid 1px; border-top:#CCC solid 1px;"> </td>
      </tr>
      <tr>
        <td valign="top" align="right">
      <div id="contact" align="right">   
      <form action="#" method="post">
      <p align="center">Mensaje enviado correctamente</p>
            <input type="button" onClick="parent.$.modal().close()" value="Cerrar">
      </form>
        </div>
        </td>
        <td class="margen">
            <div id="direccion">
                <strong>Aguascalientes</strong><br />T :: 014499145150.<br />E-mail :: xxxxxxxxx@xxxxxxxx<br />
                <strong>Bajio</strong><br />T :: 014422150577.<br />E-mail :: xxxxxxxxx@xxxxxxxx<br />
                <strong>Cancún</strong><br />T :: 019988920272.<br />E-mail :: xxxxxxxxx@xxxxxxxx<br />
                <strong>Hidalgo</strong><br />T :: 0445539243356.<br />E-mail :: xxxxxxxxx@xxxxxxxx<br />
                <strong>Puebla</strong><br />T :: 012224661905.<br />E-mail :: xxxxxxxxx@xxxxxxxx<br />
                <strong>Toluca</strong><br />T :: 017222714990.<br />E-mail :: xxxxxxxxx@xxxxxxxx<br />
                <strong>Nueva York</strong><br />(800) 7113572<br />Sherry Mitchel Inc. Vonhaucke<br />P.O. Box 3035<br />Sea Bright, N,J. 07760
            </div> <br />
        </td>
      </tr>
      <tr>
        <td colspan="2" align="center">
        <div id="ubicacion">Paseo de la Reforma 284 PH, Col. Juárez, Del. Cuauhtémoc, C.P. 06600, México D.F. T.(55) 5999 9200, e-mail. xxxxx@xxxxxx</div>
        </td>
      </tr>
    </table>
    </body>
    </html>

  • Need help with PHP contact form

    Hi guys,
    I've made a PHP contact form for my site and need help with a couple of things:
    The form action links an external PHP script (scripts/contact-form-script.php) but is there a way I can have it so the PHP script for the form is contained within the same PHP file as my contact form (contact.php)?
    I tried just putting the form code at the top of contact.php but the browser automatically reads the anti-spam re-direct, so maybe that needs revising too?
    The second thing is, how can I make the Name, Email and Message fields mandatory? So if a user tries to submit the form and hasn't filled in one of the required fields and clicks submit, contact.php reloads with a message at the top of the form saying something like 'Complete the required fields' and highlights the relevant field with a red border?
    Here's the code for contact.php:
    <form action="http://www.mydomain.com/scripts/contact-form-script.php" method="post" name="contact" id="contact">
    <p><strong>Name:*</strong><br />
    <input name="name" type="text" class="ctextField" /></p>
    <p><strong>E-mail:*</strong><br />
    <input name="email" type="text" class="ctextField" /></p>
    <p><strong>Telephone:</strong><br />
    <input name="telephone" type="text" class="ctextField" /></p>
    <p><strong>Company:</strong><br />
    <input name="company" type="text" class="ctextField" /></p>
    <p><strong>Address:</strong><br />
    <input name="address1" type="text" class="ctextField" /></p>
    <p><input name="address2" type="text" class="ctextField" /></p>
    <p><strong>Town:</strong><br />
    <input name="town" type="text" class="ctextField" /></p>
    <p><strong>County:</strong><br />
    <input name="county" type="text" class="ctextField" /></p>
    p><strong>Postcode:</strong><br />
    <input name="postcode" type="text" class="ctextField" /></p>
    <p><strong>Message:*</strong><br />
    <textarea name="message" cols="55" rows="8" class="ctextField"></textarea></p>
    <p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
    </form>
    And this is the PHP I'm using to submit the form data for contact-form-script.php:
    <?php
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $to = "[email protected]";
    $subject = "Contact from website";
    $message = $headers;
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
            $message= '
                <table cellspacing="0" cellpadding="8" border="0" width="500">
                <tr>
                    <td colspan="2"></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td width="154" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Name</strong></td>
                  <td width="314" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$name.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>E-mail address:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$email.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Telephone number:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$telephone.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Company:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$company.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Address</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address1.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address2.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Town</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$town.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>County</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$county.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Postcode</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$postcode.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                    <td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Message</strong></td>
                </tr>              
                <tr bgcolor="#eeeeee">
                    <td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$message.'</td>
                </tr>              
                <tr><td colspan="2" style="padding:0px;"><img src="images/whitespace.gif" alt="" width="100%" height="1" /></td></tr>
             </table>
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.go-away-spam-robots.com' );
    exit();
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mydomain.com/sent.php' ) ;
    ?>
    Any help on this would be greatly appreciated.
    Thank you and I hope to hear from you!
    SM

    Revised code with form validation for Name Email and Message:
    <?php
    if (array_key_exists('submit', $_POST)) {
        $name = $_POST['name'];
        $email = $_POST['email'];
        $telephone = $_POST['telephone'];
        $company = $_POST['company'];
        $address1 = $_POST['address1'];
        $address2 = $_POST['address2'];
        $town = $_POST['town'];
        $county = $_POST['county'];
        $postcode = $_POST['postcode'];
        $formMessage = $_POST['message'];
    if (empty($name)) {
                                                $warning['name'] = "Please provide your name";
    if (empty($email)) {
                                                $warning['email'] = "Please provide your email";
    if (empty($formMessage)) {
                                                $warning['message'] = "Please provide your message";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $to = "[email protected]";
    $subject = "Contact from website";
    $message = $headers;
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
            $message= "
    <table cellspacing='0' cellpadding='8' border='0' width='500'>
                <tr>
                    <td colspan='2'></td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td width='154' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Name</strong></td>
                  <td width='314' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$name."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>E-mail address:</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$email."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Telephone number:</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$telephone."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Company:</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$company."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Address</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address1."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address2."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Town</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$town."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>County</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$county."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Postcode</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$postcode."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                    <td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Message</strong></td>
                </tr>              
                <tr bgcolor='#eeeeee'>
                    <td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$formMessage."</td>
                </tr>              
                <tr><td colspan='2' style='padding: 0px;'><img src='images/whitespace.gif' alt='' width='100%' height='1' /></td></tr>
             </table>
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.go-away-spam-robots.com' );
    exit();
    if (!isset($warning)) {
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mydomain.com/sent.php' ) ;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    p {
        margin: 0;
        padding: 10px 0 0 0;
    .warning {
        color:#C00;
    </style>
    </head>
    <body>
    <form action="" method="post" name="contact" id="contact">
    <p><strong>Name:*</strong><br />
    <input name="name" <?php if (isset($warning['name'])) { echo "style='border: 1px solid #C00'"; } ?> type="text" class="ctextField" />
    <?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['name']."</p>"; }?>
    </p>
    <p><strong>E-mail:*</strong><br />
    <input name="email" <?php if (isset($warning['email'])) { echo "style='border: 1px solid #C00'"; } ?>type="text" class="ctextField" />
    <?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['email']."</p>"; }?>
    </p>
    <p><strong>Telephone:</strong><br />
    <input name="telephone" type="text" class="ctextField" /></p>
    <p><strong>Company:</strong><br />
    <input name="company" type="text" class="ctextField" /></p>
    <p><strong>Address:</strong><br />
    <input name="address1" type="text" class="ctextField" /></p>
    <p><input name="address2" type="text" class="ctextField" /></p>
    <p><strong>Town:</strong><br />
    <input name="town" type="text" class="ctextField" /></p>
    <p><strong>County:</strong><br />
    <input name="county" type="text" class="ctextField" /></p>
    <p><strong>Postcode:</strong><br />
    <input name="postcode" type="text" class="ctextField" /></p>
    <p><strong>Message:*</strong><br />
    <?php if (isset($warning['message'])) { echo "<p class='warning'>".$warning['message']."</p>"; }?>
    <textarea name="message" <?php if (isset($warning['message'])) { echo "style='border: 1px solid #C00'"; } ?> cols="55" rows="8" class="ctextField"></textarea></p>
    <p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
    </form>
    </body>
    </html>

  • Could someone please help me with contact form php.

    Hi,
    could someone please help me wright the php for this contact form?
    <form class="contact_form" action="kontakt.php" method="post">
                <p><input type="text" required="required" id="contact_name" name="contact_name" class="text_input" value="" size="22"  />
                <label for="contact_name">Namn *</label></p>
                <p><input type="text" required="required" id="contact_company" name="contact_company" class="text_input" value="" size="22"  />
                <label for="contact_company">Företag *</label></p>
                <p><input type="email" required="required" id="contact_email" name="contact_email" class="text_input" value="" size="22"  />
                <label for="contact_email">Epost *</label></p>
                <p><textarea required="required" name="contact_content" class="textarea" cols="30" rows="5"></textarea></p>
                <p><button type="submit" class="button white"><span>Skicka</span></button></p>
                <input type="hidden" value="[email protected]" name="contact_to"/>
            </form>
    Its no sence writing down my php as it is useless.
    All help is appriciated.
    Thank you

    Please don't post duplicate threads. Continue the discussion in http://forums.adobe.com/thread/1080721.
    This thread is now locked.

  • How to get a contact form working on OS X Server 10.8?

    Since PHP's mail() function does not seem to work on OS X Server (Mountain Lion), I was wondering what other ways there are to use a contact form for our website.
    Anyone?

    OK, tried and tested!
    Here we go.
    You are going to install PEARL wwithin php on the server and then download a package called PERL::Mail with all its dependencies:
    Thanks to http://echodittolabs.org/blog/2011/09/os-x-107-lion-development-native-apache-ph p-homebrew-mysql-or-mariadb  for the step by step for PEAR.
    Step 1
    $ sudo /usr/bin/php /usr/lib/php/install-pear-nozlib.phar
    Step 2
    $ cat >> ~/.bashrc <<'EOF'
    alias pear="php /usr/lib/php/pear/pearcmd.php"
    alias pecl="php /usr/lib/php/pear/peclcmd.php"
    EOF
    Step 3.  (just in case)
    $ sudo chmod o+x ./.bashrc
    Step 4.
    $ . ~/.bashrc
    Step 5
    $ sudo pear channel-update pear.php.net
    Step 6.
    $ sudo pecl channel-update pecl.php.net
    Step 7. (may say nothing to update but thats cool)
    $ sudo pear upgrade --force pear
    Step 8.
    $ sudo pear upgrade (ditto)
    Step 9.
    $ sudo pecl upgrade (ditto)
    Step 10. (adds the include path to your php.ini)1
    sudo sh -c "cat >> /etc/php.ini <<'EOF'
    include_path = ".:/usr/lib/php:/usr/lib/php/pear"
    EOF"
    Step 11. (Installs the PEAR::Mail module - with all dependencies) 
    $ sudo pear install --alldeps -f mail
    Step 12. Test php script with Login SMTP Auth.
    <?php
    require_once "Mail.php";
    $from = "mark <[email protected]>";
    $to = "Fred <[email protected]>";
    $subject = "Hi!";
    $body = "Hi Mark23,\n\nHow are you?";
    $host = "localhost"; // or address of smtp host if different
    $username = "smtp username";
    $password = "smtp password";
    $headers = array ('From' => $from,
       'To' => $to,
       'Subject' => $subject);
    $smtp = Mail::factory('smtp',
       array ('host' => $host,
         'auth' => true,
         'username' => $username,
         'password' => $password));
    $mail = $smtp->send($to, $headers, $body);
    if (PEAR::isError($mail)) {
       echo("<p>" . $mail->getMessage() . "</p>");
      } else {
       echo("<p>Message successfully sent!</p>");
    ?>
    I was testing this on my local dev machine and not the server and kept getting a "need FQDN name for host" reject.  I added a  "localhost" variable to my dev machine FQDN and all was well.  I'm just telling you this if you test on a machine that IS NOT the  the smtp server host. 
    Good luck! - Let me know how you go.

  • Please help !! Contact form not sending mail

    www.concretegta.com
    in the contact us page i have made a little contact form, but i am not recieving mail to my email. Can someone please help, http://www.concretegta.com/contact.html is where the form is.
    this is the coding for the php
    <?php
    $mailto = '[email protected]' ;
    $subject = "Feedback from General Concrete Solutions" ;
    $formurl = "http://www.concretegta.com/contact.html" ;
    $thankyouurl = "http://www.concretegta.com/emailsent.html" ;
    $errorurl = "http://www.johnsmith.com/oops.html" ;
    $email_is_required = 1;
    $name_is_required = 1;
    $comments_is_required = 1;
    $uself = 0;
    $forcelf = 0;
    $use_envsender = 0;
    $use_sendmailfrom = 0;
    $smtp_server_win = '' ;
    $use_webmaster_email_for_from = 0;
    $use_utf8 = 1;
    $my_recaptcha_private_key = '' ;
    // -------------------- END OF CONFIGURABLE SECTION ---------------
    define( 'MAX_LINE_LENGTH', 998 );
    $headersep = $uself ? "\n" : "\r\n" ;
    $content_nl = $forcelf ? "\n" : (defined('PHP_EOL') ? PHP_EOL : "\n") ;
    $content_type = $use_utf8 ? 'Content-Type: text/plain; charset="utf-8"' : 'Content-Type: text/plain; charset="iso-8859-1"' ;
    if ($use_sendmailfrom) {
    ini_set( 'sendmail_from', $mailto );
    if (strlen($smtp_server_win)) {
    ini_set( 'SMTP', $smtp_server_win );
    $envsender = "-f$mailto" ;
    $fullname = isset($_POST['fullname']) ? $_POST['fullname'] : $_POST['name'] ;
    $email = $_POST['email'] ;
    $comments = $_POST['comments'] ;
    $http_referrer = getenv( "HTTP_REFERER" );
    if (!isset($_POST['email'])) {
    header( "Location: $formurl" );
    exit ;
    if (($email_is_required && (empty($email) || !preg_match('/@/', $email))) || ($name_is_required && empty($fullname)) || ($comments_is_required && empty($comments))) {
    header( "Location: $errorurl" );
    exit ;
    if ( preg_match( "/[\r\n]/", $fullname ) || preg_match( "/[\r\n]/", $email ) ) {
    header( "Location: $errorurl" );
    exit ;
    if (strlen( $my_recaptcha_private_key )) {
    require_once( 'recaptchalib.php' );
    $resp = recaptcha_check_answer ( $my_recaptcha_private_key, $_SERVER['REMOTE_ADDR'], $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field'] );
    if (!$resp->is_valid) {
      header( "Location: $errorurl" );
      exit ;
    if (empty($email)) {
    $email = $mailto ;
    $fromemail = $use_webmaster_email_for_from ? $mailto : $email ;
    if (function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc()) {
    $comments = stripslashes( $comments );
    $messageproper =
    "This message was sent from:" . $content_nl .
    "$http_referrer" . $content_nl .
    "------------------------------------------------------------" . $content_nl .
    "Name of sender: $fullname" . $content_nl .
    "Email of sender: $email" . $content_nl .
    "------------------------- COMMENTS -------------------------" . $content_nl . $content_nl .
    wordwrap( $comments, MAX_LINE_LENGTH, $content_nl, true ) . $content_nl . $content_nl .
    "------------------------------------------------------------" . $content_nl ;
    $headers =
    "From: \"$fullname\" <$fromemail>" . $headersep . "Reply-To: \"$fullname\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.16.2" .
    $headersep . 'MIME-Version: 1.0' . $headersep . $content_type ;
    if ($use_envsender) {
    mail($mailto, $subject, $messageproper, $headers, $envsender );
    else {
    mail($mailto, $subject, $messageproper, $headers );
    header( "Location: $thankyouurl" );
    exit ;
    ?>

    >? i dont understand why there would be secuirity
    >risks... did i do something wrong??
    Most of the time McAfee SiteAdvisor gets it right but it's not perfect. It's possible there is something suspicious on your site but if you think everything is ok request a review:
    https://www.siteadvisor.com/analysis/recommendchanges/?url=http%3A//www.concretegta.com/

  • Why won't this contact form work?

    Hi All,
    Ok so i decided to update the contact form of page below as i was using the out dated spry validation method. I inserted the new contact form using webassist dreamweaver extension but i am now having big problems with this page. I am now unable to even open the page, please use link below to see the page error and i have also pasted the code of this page.
    http://www.milesfunerals.com/contact.php
    <?php virtual("/webassist/form_validations/wavt_scripts_php.php"); ?>
    <?php virtual("/webassist/form_validations/wavt_validatedform_php.php"); ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Miles &amp; Daughters | Contact us by email or phone</title>
    <meta name="description" content="Contact us and speak to any of our friendly staff if you have any enquiries or if you would prefer you can contact us by email. You can also see pictures of all five of our branches. ">
    <meta name="keywords" content="contact, questions, enquiries, friendly, email, addresses, write, funeral home, branches, reading, wokingham, crowthorne, twyford, bracknell">
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link href="/stylesheet.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="fancyBox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script type="text/javascript" src="fancyBox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    $('.fancybox').fancybox();
    </script>
    <style type="text/css">
    #sprytextfield2{
               form input[type=text] {width: 75%}
    textarea {width: 85%}
    #sprytextfield1{
               form input[type=text] {width: 75%}
    textarea {width: 85%}
    </style>
    <LINK REL="SHORTCUT ICON" HREF="http://www.milesmemorials.com/favicon.ico">
    <script src="/webassist/progress_bar/jquery-blockui-formprocessing.js" type="text/javascript"></script>
    <link href="/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <script src="/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="/webassist/forms/wa_servervalidation.js" type="text/javascript"></script>
    <link href="/webassist/forms/fd_basic_default.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="container">
    <?php include('includes/header.php'); ?>
    <?php include('includes/navbar2.php'); ?>
    <?php include('includes/navbar.php'); ?>
    <?php include('includes/sidebar.php'); ?>
    <div id="maindiv" class="maindiv_scroll">
      <p> </p>
      <p> </p>
        <p class="subheading">Miles and Daughters - Contact us</p>
      <p class="sub2">Addresses and telephone numbers for our offices are:</p>
    <p class="maintext"> </p>
    <p class="wokingham"><span class="address"><a class="fancybox" href="images/Isabella house.jpg" title="Miles & Daughters Winnersh Premises"><img src="images/Isabella house.jpg" alt="Miles &amp; Daughters Wokingham premisesh" width="297" height="263" class="shop"/></a></span> </p>
    <p class="wokingham"> </p>
    <p class="wokingham">Wokingham</p>
    <p class="address">Isabella House  </p>
    <p class="address">498a Reading Road</p>
      <p class="address"> Winnersh </p>
      <p class="address">Berkshire</p>
      <p class="address"> RG41 5EX</p>
      <p class="address"> Telephone: 0118 979 3004</p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"><a class="fancybox" href="images/cav-1.jpg" title="Miles & Daughters Reading Premises"><img src="/images/cav-1.jpg" alt="Miles &amp; Daughters Reading premises" width="380" height="321" class="shop"/></a></p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="wokingham">Reading</p>
    <p class="address">Tamela House</p>
      <p class="address">157-161 Caversham Road</p>
      <p class="address">Reading</p>
      <p class="address">Berkshire</p>
      <p class="address">RG1 8BB</p>
      <p class="address">Telephone: 0118 959 0022</p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"><a class="fancybox" href="images/Ivydene2.jpg" title="Miles & Daughters Binfield Premises"><img src="images/Ivydene2.jpg" alt="Miles &amp; Daughters Bracknell premises" width="380" height="267" class="shop"/></a></p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham">Bracknell</p>
      <p class="address">Ivydene House</p>
      <p class="address">Forest Road</p>
      <p class="address">Binfield</p>
      <p class="address">Bracknell</p>
      <p class="address">RG42 4HP</p>
      <p class="address">Telephone: 01344 452020  </p>
      <p class="wokingham"><span class="address"><a class="fancybox" href="images/twford.jpg" title="Miles & Daughters Twyford Premises"><img src="images/twford.jpg" alt="Miles &amp; Daughters Twyford premises" width="263" height="317" class="shop"/></a></span></p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham">Twyford</p>
    <p class="address">The Old Clock House</p>
      <p class="address">Station Road</p>
      <p class="address"> Twyford</p>
      <p class="address">Berkshire </p>
      <p class="address">RG10 9NS</p>
      <p class="address"> Telephone: 0118 934 5474</p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"><a class="fancybox" href="images/crowthorne.jpg" title="Miles & Daughters Crowthorne Premises"><img src="images/crowthorne.jpg" alt="Miles &amp; Daughters Crowthorne premises" width="362" height="239" class="shop"/></a></p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
        <p class="wokingham">Crowthorne</p>
    <p class="address">Alicya House</p>
      <p class="address">105 High Street</p>
      <p class="address"> Crowthorne</p>
      <p class="address">Berkshire </p>
      <p class="address">RG45 7AD</p>
      <p class="address"> Telephone: 01344 774932</p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="endtext"> </p>
      <p class="endtext"> </p>
      <p class="maintext">You may email us or alternatively use the form below to contact us, one of our members of staff will respond as soon as possible.  </p>
      <p> </p>
      <div id="SimpleContact_Basic_Default_ProgressWrapper">
        <form class="Basic_Default" id="SimpleContact_Basic_Default" name="SimpleContact_Basic_Default" method="post" action="form-to-email.php">
          <!--
    WebAssist CSS Form Builder - Form v1
    CC: Contact
    CP: Simple Contact
    TC: Basic
    TP: Default
    -->
          <ul class="Basic_Default">
            <li>
              <fieldset class="Basic_Default" id="Contact_me">
                <legend class="groupHeader">Contact</legend>
                <ul class="formList">
                  <li class="formItem"> <span class="fieldsetDescription"> Required * </span> </li>
                  <li class="formItem">
                    <div class="formGroup">
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <label for="Full_Name" class="sublabel" > Name:<span class="requiredIndicator"> *</span></label>
                          <div class="errorGroup">
                            <div class="fieldPair">
                              <div class="fieldGroup"> <span id="Full_Name_Spry"> <span>
                                <input id="Full_Name" name="Full_Name" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("formtoemail","Full_Name"):"")); ?>" class="formTextfield_Large" tabindex="1" onBlur="hideServerError('Full_Name_ServerError');">
                                <span class="textfieldRequiredMsg">Please enter your name</span> </span> </span>
                                <?php
    if (ValidatedField('formtoemail','formtoemail'))  {
      if ((strpos((",".ValidatedField("formtoemail","formtoemail").","), "," . "1" . ",") !== false || "1" == ""))  {
        if (!(false))  {
    ?>
                                  <span class="serverInvalidState" id="Full_Name_ServerError">Please enter your name</span>
                                  <?php //WAFV_Conditional form-to-email.php formtoemail(1:)
    }?>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <label for="Email_Address" class="sublabel" > Email:<span class="requiredIndicator"> *</span></label>
                          <div class="errorGroup">
                            <div class="fieldPair">
                              <div class="fieldGroup"> <span id="Email_Address_Spry"> <span>
                                <input id="Email_Address" name="Email_Address" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("formtoemail","Email_Address"):"")); ?>" class="formTextfield_Large" tabindex="2" onBlur="hideServerError('Email_Address_ServerError');">
                                <span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldRequiredMsg">Please enter a full email address</span> </span> </span>
                                <?php
    if (ValidatedField('formtoemail','formtoemail'))  {
      if ((strpos((",".ValidatedField("formtoemail","formtoemail").","), "," . "2" . ",") !== false || "2" == ""))  {
        if (!(false))  {
    ?>
                                  <span class="serverInvalidState" id="Email_Address_ServerError">Please enter a full email address</span>
                                  <?php //WAFV_Conditional form-to-email.php formtoemail(2:)
    }?>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <label for="Comments" class="sublabel" > Comments:</label>
                          <div class="errorGroup">
                            <div class="fieldPair">
                              <div class="fieldGroup"> <span>
                                <textarea name="Comments" id="Comments" class="formTextarea_Medium" rows="1" cols="1" tabindex="3"><?php echo((isset($_GET["invalid"])?ValidatedField("formtoemail","Comments"):"")); ?></textarea>
                              </span> </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </li>
                  <li class="formItem">
                    <div class="formGroup">
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <div class="fullColumnGroup">
                            <label for="Security_Code" class="sublabel" > </label>
                            <div class="errorGroup">
                              <div class="fieldPair">
                                <div class="fieldGroup"> <span> <img src="/webassist/captcha/wavt_captchasecurityimages.php?field=Security_Code&amp;noisefreq= 15&amp;noisecolor=060606&amp;gridcolor=080808&amp;font=fonts/MOM_T___.TTF&amp;textcolor=04 0404" alt="Security Code" class="Captcha"> </span> </div>
                              </div>
                            </div>
                          </div>
                          <div class="fullColumnGroup" style="clear:left;">
                            <label for="Security_Code" class="sublabel" > Security code:<span class="requiredIndicator"> *</span></label>
                            <div class="errorGroup">
                              <div class="fieldPair">
                                <div class="fieldGroup"> <span id="Security_Code_Spry"> <span>
                                  <input id="Security_Code" name="Security_Code" type="text" value="" class="formTextfield_Large" tabindex="4" onBlur="hideServerError('Security_Code_ServerError');">
                                  <span class="textfieldRequiredMsg">Entered text does not match; please try again</span> </span> </span>
                                  <?php
    if (ValidatedField('formtoemail','formtoemail'))  {
      if ((strpos((",".ValidatedField("formtoemail","formtoemail").","), "," . "3" . ",") !== false || "3" == ""))  {
        if (!(false))  {
    ?>
                                    <span class="serverInvalidState" id="Security_Code_ServerError">Entered text does not match; please try again</span>
                                    <?php //WAFV_Conditional form-to-email.php formtoemail(3:)
    }?>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <div class="fullColumnGroup">
                            <label for="Security_Answer_2" class="sublabel" > </label>
                            <div class="errorGroup">
                              <div class="fieldPair">
                                <div class="fieldGroup"> <span> <span class="precedingText">
                                  <?php virtual("/webassist/captcha/wavt_captchasecurityquestion.php"); ?>
                                </span> </span> </div>
                              </div>
                            </div>
                          </div>
                          <div class="fullColumnGroup" style="clear:left;">
                            <label for="Security_Answer" class="sublabel" > Answer:<span class="requiredIndicator"> *</span></label>
                            <div class="errorGroup">
                              <div class="fieldPair">
                                <div class="fieldGroup"> <span id="Security_Answer_Spry"> <span>
                                  <input id="Security_Answer" name="Security_Answer" type="text" value="" class="formTextfield_Large" tabindex="5" onBlur="hideServerError('Security_Answer_ServerError');">
                                  <span class="textfieldRequiredMsg">Incorrect
                                    response; please try again</span> </span> </span>
                                  <?php
    if (ValidatedField('formtoemail','formtoemail'))  {
      if ((strpos((",".ValidatedField("formtoemail","formtoemail").","), "," . "4" . ",") !== false || "4" == ""))  {
        if (!(false))  {
    ?>
                                    <span class="serverInvalidState" id="Security_Answer_ServerError">Incorrect
                                      response; please try again</span>
                                    <?php //WAFV_Conditional form-to-email.php formtoemail(4:)
    }?>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </li>
                  <li class="formItem"> <span class="buttonFieldGroup" >
                    <input id="Hidden_Field" name="Hidden_Field" type="hidden" value="<?php echo((isset($_GET["invalid"])?ValidatedField("formtoemail","Hidden_Field"):"")); ?>">
                    <input class="formButton" name="SimpleContact_submit" type="submit" id="SimpleContact_submit" value="Contact me"  onClick="clearAllServerErrors('SimpleContact_Basic_Default')">
                  </span> </li>
                </ul>
              </fieldset>
            </li>
          </ul>
        </form>
      </div>
      <div id="SimpleContact_Basic_Default_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
        <script type="text/javascript">
    WADFP_SetProgressToForm('SimpleContact_Basic_Default', 'SimpleContact_Basic_Default_ProgressMessageWrapper', WADFP_Theme_Options['BigSpin:Slate']);
        </script>
        <div id="SimpleContact_Basic_Default_ProgressMessage" >
          <p style="margin:10px; padding:5px;" ><img src="/webassist/progress_bar/images/slate-largespin.gif" alt="" title="" style="vertical-align:middle;" />  Please wait</p>
        </div>
      </div>
      <p class="maintext"> </p>
    </div>
    <?php include('includes/footer.php'); ?>
    </div>
    <script type="text/javascript">
    var Full_Name_Spry = new Spry.Widget.ValidationTextField("Full_Name_Spry", "none",{validateOn:["blur"]});
    var Email_Address_Spry = new Spry.Widget.ValidationTextField("Email_Address_Spry", "email",{validateOn:["blur"]});
    var Security_Code_Spry = new Spry.Widget.ValidationTextField("Security_Code_Spry", "none",{validateOn:["blur"]});
    var Security_Answer_Spry = new Spry.Widget.ValidationTextField("Security_Answer_Spry", "none",{validateOn:["blur"]});</script>
    </body>
    </html>

    Might want to have a look at this form below. It's similar to yours but no styling - you'd need to use some css to style it up a bit. It's just the raw html/php coding. The form action="form_send.php" - basically save the code to a Dreamweaver document named form_send.php and send the information back to the page to be processed.
    <?php
    $number_1 = rand(1, 9);
    $number_2 = rand(1, 9);
    $answer = md5($number_1+$number_2);
    if(isset($_POST['submit'])) {
    // get the name from the form 'name' field
    $name = trim($_POST['name']);
    if (empty($name)) {
    $error['name'] = "<span>Please provide your name</span>";
    // get the email from the form 'email' field
    $email = trim($_POST['email']);
    if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
    $error['email'] = "<span>Please provide a valid email address</span>";
    // get the comments from the form 'comments' field 
    $comments = trim($_POST['comments']);   
    if (empty($comments)) {
    $error['comments'] = "<span>Please provide your comments</span>";
    // security against spam   
    $user_answer = trim(htmlspecialchars($_POST['user_answer']));
    $answer = trim(htmlspecialchars($_POST['answer']));
    if (md5($user_answer) != $answer) {
        $error['answer'] = "<span>Wrong answer - please try again</span>";
    // if no errors send the form   
    if (!isset($error) && md5($user_answer) == $answer) {
    $to = '[email protected]'; // send to recipient
    $from = '[email protected]'; // from your domain
    $subject = 'Response from website';
    $message = "From: $name\r\n\r\n";
    $message .= "Email: $email\r\n\r\n";
    $message .= "Comments: $comments";
    $headers = "From: $from\r\nReply-to: $email";
    $sent = mail($to, $subject, $message, $headers);
    echo 'Your message has been sent.';
    else {
    $number_1 = rand(1, 9);
    $number_2 = rand(1, 9);
    $answer = md5($number_1+$number_2);
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Untitled Document</title>
    <style>
    #contactForm span {
        color: #900;
    </style>
    </head>
    <body>
    <form name="contactForm" id="contactForm" method="post" action="form_send.php">
    <p><label for="name">Name<input type="text" name="name" id="name" value="<?php if(isset($name)) {echo $name; } ?>" <?php if(isset($error['name'])) {echo 'style="background-color: #FCC;"'; } ?>></label><br>
    <?php if(isset($error['name'])) {echo $error['name']; } ?></p>
    <p><label for="email">Email<input type="text" name="email" id="email" value="<?php if(isset($email)) {echo $email; } ?>" <?php if(isset($error['email'])) {echo 'style="background-color: #FCC;"'; } ?>></label><br>
    <?php if(isset($error['email'])) {echo $error['email']; } ?></p>
    <p><label for="comments">Comments<textarea name="comments" id="comments" <?php if(isset($error['comments'])) {echo 'style="background-color: #FCC;"'; } ?>>
    <?php if(isset($comments)) { echo $comments; } ?></textarea></label><br>
    <?php if(isset($error['comments'])) {echo $error['comments']; } ?></p>
    <p>Spam prevention - please answer the question below:</p>
    <p><?php echo $number_1; ?> + <?php echo $number_2; ?> = ?<input type="text" name="user_answer" <?php if(isset($error['answer'])) {echo 'style="background-color: #FCC;"'; } ?>/>
    <input type="hidden" name="answer" value="<?php echo $answer; ?>" /><br>
    <?php if(isset($error['answer'])) {echo $error['answer']; } ?></p>
    <p><input type="submit" name="submit" id="sumbit"></p>
    </form>
    </body>
    </html>

  • Please, I need some help! my contact form stopped working

    My client called to tell me the form on her site (or at least the "submit" stopped working. I'm too new at this to figure it out.
    here's the link:
    http://www.hickersonbrothers.com/Contact_Us/contact_hickerson_brothers_electric.php
    Does anyone know what I need to do? Thank you in advance.
    jeff

    Thank you for taking the time to re-write the code so it'll work. That's over and above all expectations for help.
    But before I replace the old code with your new code, I just wanted to know if it's an exact replacement for the excerpt I pasted above or does it somehow fit within the whole page of code?
    Here's the whole page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>hickerson_brothers_contact_us</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <META NAME="keywords" CONTENT="Electrical Service, Northern Virginia, VA, Residential Service, Affordable, Fully Trained Professionals, Electric, Service, Electrical, Commercial Service, Residential, Commercial">
    <META NAME="description" CONTENT="Hickerson Brothers Electric Service is a family owned and operated business whose members have serviced the Northern Virginia area for over 30 years.We believe in making our customer’s comfort our number one priority. 100% satisfaction guarenteed.">
    <style type="text/css">
    <!--
    body,td,th {
    font-family: Times New Roman, Times, serif;
    font-size: medium;
    color: #000011;
    #apDiv1 {
    position:absolute;
    width:202px;
    height:125px;
    z-index:1;
    left: 13px;
    top: 33px;
    #apDiv2 {
    position:absolute;
    width:210px;
    height:125px;
    z-index:1;
    left: 14px;
    top: 19px;
    #apDiv3 {
    position:absolute;
    width:258px;
    height:222px;
    z-index:2;
    left: 11px;
    top: 152px;
    #apDiv5 {
    position:absolute;
    width:231px;
    height:88px;
    z-index:3;
    left: 656px;
    top: 38px;
    #apDiv4 {
    position:absolute;
    width:181px;
    height:122px;
    z-index:1;
    left: 51px;
    top: 381px;
    #apDiv6 {
    position:absolute;
    width:496px;
    height:312px;
    z-index:1;
    left: 336px;
    top: 452px;
    .style2 {font-size: 14px;
    font-weight: bold;
    #apDiv10 {
    position:absolute;
    width:534px;
    height:72px;
    z-index:7;
    left: 316px;
    top: 698px;
    #apDiv {
    position:absolute;
    width:601px;
    height:72px;
    z-index:7;
    left: 287px;
    top: 386px;
    #apDiv13 {
    position:absolute;
    width:235px;
    height:191px;
    z-index:10;
    left: 272px;
    top: 170px;
    #apDiv7 { position:absolute;
    width:271px;
    height:212px;
    z-index:2;
    left: 14px;
    top: 152px;
    #apDiv8 {
    position:absolute;
    width:527px;
    height:334px;
    z-index:0;
    left: 273px;
    top: 367px;
    background-color: #EEEEEE;
    #apDiv9 {
    position:absolute;
    width:630px;
    height:332px;
    z-index:0;
    left: 272px;
    background-color: #DDDDDD;
    top: 368px;
    #apDiv11 {
    position:absolute;
    width:200px;
    height:115px;
    z-index:11;
    left: 13px;
    top: 506px;
    #apDiv21 {
    position:absolute;
    width:236px;
    height:98px;
    z-index:13;
    left: 27px;
    top: 697px;
    #apDiv18 {
    position:absolute;
    width:298px;
    height:34px;
    z-index:12;
    left: 651px;
    top: 113px;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    //-->
    </script>
    </head>
    <body onload="MM_preloadImages('../Assets/Navigation/contactus_up.gif','../Assets/Navigation/pl uggedin_up.gif','../Assets/Navigation/aboutus_down.gif','../Assets/Navigation/aboutus_over .gif','../Assets/Navigation/aboutus_overdown.gif','../Assets/Navigation/residentialservice _down.gif','../Assets/Navigation/commercialservice_down.gif','../Assets/Navigation/commerc ialservice_over.gif','../Assets/Navigation/testimonials_overdown.gif','../Assets/Navigatio n/pluggedin_down.gif','../Assets/Navigation/pluggedin_over.gif','../Assets/Navigation/plug gedin_overdown.gif','../Assets/Navigation/contactus_over.gif','../Assets/Navigation/contac tus_overdown.gif','../Assets/Navigation/commercialservice_overdown.gif','../Assets/Navigat ion/testimonials_down.gif','../Assets/Navigation/testimonials_over.gif','../Assets/Navigat ion/residentialservice_over.gif','../Assets/Navigation/residentialservice_overdown.gif')">
    <table width="892" height="571" cellpadding="0" cellspacing="0">
    </table>
    <table width="892" height="669" cellpadding="0" cellspacing="0">
      <caption align="left"> 
      </caption>
      <tr>
        <th width="890" height="667" scope="row"><div id="apDiv13"><img src="../Assets/Photography/E_phone.jpg" alt="Call Eileen Hickerson Now" title="Call Eileen Hickerson Now" width="255" height="193" /></div>
          <div id="apDiv3"><br />
            <a href="/About_us/about_us.html" target="_top" onclick="MM_nbGroup('down','group1','Aboutus','../Assets/Navigation/aboutus_down.gif',1)" onmouseover="MM_nbGroup('over','Aboutus','../Assets/Navigation/aboutus_over.gif','../Asse ts/Navigation/aboutus_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/aboutus_up.gif" alt="About Hickerson Brothers Electric" title="About Hickerson Brothers Electric" name="Aboutus" width="250" height="30" border="1" id="Aboutus" onload="" /></a><br />
              <a href="../Residential_service/residential_service.html" target="_top" onclick="MM_nbGroup('down','group1','Residential','../Assets/Navigation/residentialservic e_down.gif',1)" onmouseover="MM_nbGroup('over','Residential','../Assets/Navigation/residentialservice_ove r.gif','../Assets/Navigation/residentialservice_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/residentialservice_up.gif" alt="Hickerson Brothers Electric Residental" title="Hickerson Brothers Electric Residental" name="Residential" width="250" height="30" border="1" id="Residential" onload="" /></a><br />
              <a href="../Commercial_service/commercial_service.html" target="_top" onclick="MM_nbGroup('down','group1','Commercial','../Assets/Navigation/commercialservice_ down.gif',1)" onmouseover="MM_nbGroup('over','Commercial','../Assets/Navigation/commercialservice_over. gif','../Assets/Navigation/commercialservice_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/commercialservice_up.gif" alt="Hickerson Brothers Electric Commercial" title="Hickerson Brothers Electric Commercial" name="Commercial" width="250" height="30" border="1" id="Commercial" onload="" /></a><br />
              <a href="../Testimonials/testimonials.html" target="_top" onclick="MM_nbGroup('down','group1','Testimonials','../Assets/Navigation/testimonials_dow n.gif',1)" onmouseover="MM_nbGroup('over','Testimonials','../Assets/Navigation/testimonials_over.gif ','../Assets/Navigation/testimonials_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/testimonials_up.gif" alt="Hickerson Brothers Electric Reputation" title="Hickerson Brothers Electric Reputation" name="Testimonials" border="1" id="Testimonials" onload="" /></a><br />
              <a href="../Plugged_in/plugged_in.html" target="_top" onclick="MM_nbGroup('down','group1','Pluggedin','../Assets/Navigation/pluggedin_down.gif' ,1)" onmouseover="MM_nbGroup('over','Pluggedin','../Assets/Navigation/pluggedin_over.gif','../ Assets/Navigation/pluggedin_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/pluggedin_up.gif" alt="Green electricity Plus" title="Green Electricity Plus" name="Pluggedin" width="250" height="30" border="1" id="Pluggedin" onload="" /></a><br />
    <a href="/Contact_Us/contact_hickerson_brothers_electric.php" target="_top" onclick="MM_nbGroup('down','group1','Contactus','../Assets/Navigation/contactus_down.gif' ,1)" onmouseover="MM_nbGroup('over','Contactus','../Assets/Navigation/contactus_over.gif','../ Assets/Navigation/contactus_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/contactus_down.gif" alt="Contact Hickerson Brothers Electric" title="Contact Hickerson Brothers Electric" name="Contactus" border="1" id="Contactus" onload="MM_nbGroup('init','group1','Contactus','../Assets/Navigation/contactus_up.gif',1) " /></a><br />
              <br />
              <br />
              <br />
              <br />
          </div>
          <br /></th>
      </tr>
    </table>
    <div id="apDiv18">
      <div align="center">24 Hour Emergency Service</div>
    </div>
    <div id="apDiv11"><img src="../Assets/Photography/lady_on_phone.jpg" alt="Hickerson Brothers trusted service for over 30 years" title="Hickerson Brothers trusted service for over 30 years" width="254" height="193" /></div>
    <div id="apDiv9"></div>
    <div id="apDiv6">
    <?php
    $to = "[email protected]";
    $subject = "Online Request for Electrical Problem";
    // This is displayed when the email has been sent
    $thankyou_message = "<br>
    <b>THANK YOU $CustomerName!</b><br><br>
    We'll contact you soon.
    <p> </p>";
    $from_email = "$EmailAddress";
    $message = "Customer Name: $CustomerName\n
    Email Address: $EmailAddress\n
    Primary Phone#: $Primary\n
    Secondary Phone#: $Secondary\n
    Problem: $Problem\n";
    if (!isset($_POST['CustomerName'])) {
    ?>
      <form id="form1" name="form1" method="post" action="<?php echo $PHP_SELF;?>">
        <table width="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><label for="CustomerName">Customer Name:</label></td>
            <td><label for="CustomerName"></label>
                <input type="text" name="CustomerName" id="CustomerName" /></td>
          </tr>
          <tr>
            <td><label for="EmailAddress">Email Address:</label></td>
            <td><label for="EmailAddress"></label>
                <input type="text" name="EmailAddress" id="EmailAddress" /></td>
          </tr>
          <tr>
            <td><Primary>Primary Phone#</primary></td>
            <td><label for="Primary"></label>
                <input type="text" name="Primary" id="Primary" /></td>
          </tr>
          <tr>
            <td><label for="Secondary">Secondary Phone#</label></td>
            <td><label for="Secondary"></label>
                <input type="text" name="Secondary" id="Secondary" /></td>
          </tr>
          <tr>
            <td><label for="Problem">
              <Problem>Electrical Problem:</problem>
            </label></td>
            <td><label for="Problem"></label>
                <textarea name="Problem" id="Problem" cols="45" rows="5"></textarea>
                <label for="Problem"></label>
            </td>
          </tr>
          <tr>
            <td> </td>
            <td><input type="submit" name="reset" id="reset" value="Clear Form" /> <input type="submit" name="Submit" id="Submit" value="Submit" /></td>
          </tr>
          <tr>
            <td> </td>
            <td> </td>
          </tr>
          <tr>
            <td> </td>
            <td> </td>
          </tr>
          <tr>
            <td> </td>
            <td> </td>
          </tr>
          <tr>
            <td height="16"> </td>
            <td> </td>
          </tr>
        </table>
        <br />
        <br />
        <br />
        <br />
        <br />
      </form>
    <?php
    else {
        mail("$to", "$subject", "$message", "From:$EmailAddress\r\nReply-to:$EmailAddress");
    // Display the thankyou message
        echo $thankyou_message;
    ?>
    </div>
    <div id="apDiv4"><img src="../Assets/Logos/Slogan.jpg" alt="familytag" width="171" height="116" /></div>
    <div class="style2" id="apDiv">Drop us a line and describe what electrical problem you're having. If you're experiencing an emergency, please don't hesitate to call us immediately at: (703) 594-3913. Our phones are answered 24/7. Thank you. And sorry for the inconvenience.</div>
    <div class="style2" id="apDiv10">
      <p align="center">If you're experiencing an emergency, please don't hesitate to call us immediately at: (703) 594-3913. Our phones are answered 24/7. Thank you.</p>
    </div>
    <div id="apDiv2">
      <div id="apDiv5">
        <h1 align="right">(703) 594-3913</h1>
      </div>
    <a href="../index.html"><img src="../Assets/Logos/Hickerson_bros_hr.jpg" alt="Hickerson Brothers Electric Service" title="Hickerson Brothers Electric Service" width="213" height="126" /></a></div>
    </body>
    </html>
    Thank's for not giving up on me. I will look into a more secure form after this fix - good idea.
    jeff

  • Help with php contact form

    I built a form in Dreamweaver CS4 which looks and seems to work fine both in IE and FF. I then wrote the PHP script and uploaded it to my hosting site. When I fill in the form on the web, I get my "thank you" email stating I will contact them in 24 - 48 hours. I also get this from the hosting site - This email was sent using the PHP mail() function. If you received this email than the PHP mailer is working fine. With all that said my problem is that I do not get a copy of the form details. On the properties section in Dreamweaver, I have the Form ID as contactus and Action connecting to my folder - ../Contactform.php, but I have the target blank. What would it be - blank, parent or self or should it just be black?
    Thanks in advance for any help. 

    target="_blank" opens a page in a new window. It is not used for forms processing.
    For a form, when you begin it, you need to tell it what's going to happen:
    <form method="post" action="Contactform.php">
    (And, actually, I don't recommend the use of upper and lower-case characters in any file that is to be called by a web server, bu that is not related to your issue.)
    Then, you will have an action button at the bottom of your form:
    <input type="submit" value=" Contact Me" />
    When that action button (or submit button) is activated on your web page, it should query the form for what to do. In the case that I'm outlining here, the action is to run the php file you have called Contactform.php.
    At that point, your php code takes over and will do something.
    In your php, do you have something like this?
    $subject = Contact_from_your_webpage;
    $notes = stripcslashes($notes);
    $message = " $todayis [EST] \n
    Message: $notes \n
    From: $visitor ($visitormail)\n
    Telephone: $visitorphone ($visitorphone)\n
    From: $visitor ($visitormail)\n
    Address: $address1 ($address1)\n
    Address: $address2 ($address2)\n
    From: $city $state  $zip\n
    $from = "From: $visitormail\r\n";
    mail("[email protected]", $subject, $message, $from);
    This should send you an email with all of the stuff you put in your form to send
    Please understand that, in this case, I am using form fields that may be different from yours (you didn't provide us with a link, so I don't know what your form fields are). My fields are as follows:
    visitor
    visitormail
    visitorphone
    address1
    address2
    city
    state
    zip
    notes
    I am going to hazard a guess that, either you didn't tell your form to do the right thing or your php is wrong.
    -Mark

  • Help with custom contact form

    hey... i have been trying to cr8 a custom contact me from:
    the code inside the flash movie declares the variable's and
    sends them
    on the othere hand i ahve also added the code inside the php
    script which is currently
    just trying to catch some of the varible's unsuccsesfully
    can anyone help me with this? i am not strong with php and
    thats my problem

    ef: http://www.aocroswell.com/aocroswellnew/site_flash/index-6-testcontact.html
    You have 6 opening <form> tags with several levels of wrongness about them.
    They are nested in a most confusing way.
    You have 4 closing </form> tags for those 6 opening tags.
    <form action="/aocroswellnew/contact.asp" id="form">
    <form>
    <form name="contact_form" action="contact.php" method="get">
    <form action="contact.php" method="get">
    <form id="form" method="post"  target=”_blank” action="contact.asp" name="form">
    <form id="form" method="post"  target=”_blank” action="contact.asp" name="form" >
    And I haven't even started on the controls you have (and don't have) inside some of those forms.
    You cannot have multiple instances of identical ids in a Web page.
    Try this.
    Decide ahead of time whether you want to use PHP or ASP for the action attribute.
    Decide ahead of time whether you want to use GET or POST for the method attribute.
    Create a new page in DW according to your chosen action attribute (and the path to an existing script to process this action).
    Create a new form in that page and fill in the action and method attributes as appropriate.
    Create your input controls and your button controls, giving them names, ids, and possibly labels. The names & ids may need to match whatever your script is expecting to see (I don't read asp).
    Now look at this page in Code view to see how a form should look.
    http://www.w3.org/TR/html401/interact/forms.html#h-17.1
    Mark A. Boyd
    Keep-On-Learnin' :-)
    Message was edited by: Mark A. Boyd

  • Will a Muse contact form work with a third party host?

    I have made websites in the past that are hosted on adobe catalyst but never a third party. If I use a form from Muse, will it work on a their party host without any extra coding? If coding is needed, what do I need to do?
    Thanks!

    Hi,
    Yes, you can use Muse form with third party hosting server without needing to write any code. For more info, Please refer to the following link Troubleshooting Muse Form Widgets Used on Third-Party Servers
    Regards,
    Aish

Maybe you are looking for