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

Similar Messages

  • 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>

  • 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

  • Need help with php registration form! (Dreamweaver cs5)

    Im creating an advanced php registration form in dreamweaver. I need the following code for:
    ZIP / Postal code, date of birth.
                      or
    if u can help me how to create the entire form with the following fields That will be nice! Im a Newbie:
    First name, lastname, country, zip / postal code, date of birth, username, password, email, verified, and token.
    This is the database i have in mysql:
    User_id, INT, (10), UNSIGNED, NOT NULL, A_INCREMENT
    Firstname, VARCHAR, (50), NOT NULL
    Lastname, VARCHAR, (50), NOT NULL
    Country, VARCHAR, (20), NOT NULL
    Zip, INT, (12), NOT NULL
    Birth_date, DATE, NOT NULL    
    Username, VARCHAR, (15), NOT NULL
    Password, VARCHAR, (40), NOT NULL
    Email, VARCHAR, (100), NOT NULL
    Verified, ENUM, ('n','y'), NOT NULL
    Token, VARCHAR, (40), NOT NULL
    I need to know how to apply the insert recorset server behavior in dreamweaver cs5 so I can get it to run.
    I have been trying diff ways and i just can't get it right.
    Please help! Thanks!!!

    I'm not sure how much you know but first you have to connect your form to the database
    $con = mysql_connect("hostname","admin_name","password");
    Then you have to choose the database you want information be added to.
    mysql_select_db("database name goes here", $con);
    Then you have to write an sql function which will write it in the appropiate columns in your database
    $sql="INSERT INTO what column e.g members (First name, Last name, age, etc)
    VALUES (the names of the textfields on your form), actually double check that part
    ('$_POST[firstname]','$_POST[lastname]','$_POST[age]')";
    $result = mysql_query($sql);
    This is the first and most basic part just to give you an idea how it works.
    Within these snippets you will have to write much more which will beef up the security aswell as check if everything has been entered correctly etc

  • 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>

  • Help with this contact form.

    Hi there
    I need help modifying a servlet to send email using a smtp home base internet connection,,(Sympatico)
    with a username and password... and server name (smtp)
    I am also using mysql with email parameters
    This is my servlet
    package ca.ccf.messaging;
    import java.util.Properties;
    import java.util.Date;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.Service;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import ca.ccf.db.DBConfig;
    public class MessagingUtils {
         public enum Email {EASTHAWKS_CONTACT}
         public static final String SMTP_SERVER = "localhost";
         private static final String SQL_EMAIL = "SELECT " +
              DBConfig.CONTACT_EMAIL + " FROM " + DBConfig.CONTACT_EMAIL_TABLE +
              " WHERE " +     DBConfig.CONTACT_SECTION_ID + "=?";
         private static final String ERROR_MSG_EMAIL =
              "The recipient email address needs to be set";
         public static void sendMessage(Connection conn, Email from, Email to,
                   String subject, String text)
         throws SQLException, MessagingException {
              String emailTo = getEmail(conn, to);
              if (emailTo == null)
                   throw new MessagingException(ERROR_MSG_EMAIL);
              sendMessage(conn, from, emailTo, subject, text);
         public static void sendMessage(Connection conn, Email from, String to,
                   String subject, String text)
         throws SQLException, MessagingException {
              String emailFrom = getEmail(conn, from);
              if (emailFrom == null)
                   throw new MessagingException(ERROR_MSG_EMAIL);
              Properties props = new Properties();
              props.put("mail.smtp.host", SMTP_SERVER);
              Session session = Session.getDefaultInstance(props);
              Message message = new MimeMessage(session);
              InternetAddress addrTo = new InternetAddress(to, true);
              InternetAddress addrFrom = new InternetAddress(emailFrom, true);
              message.setFrom(addrFrom);
              message.addRecipient(Message.RecipientType.TO, addrTo);
              message.setSubject(subject);
              message.setText(text);
              message.setSentDate(new Date());
              try {
                   Transport.send(message);
              catch (Exception e) {
                   // TODO: handle exception
         private static String getEmail(Connection conn, Email email)
         throws SQLException {
              String addr = null;
              PreparedStatement pstmt = conn.prepareStatement(SQL_EMAIL);
              switch (email) {
              case EASTHAWKS_CONTACT:
                   pstmt.setInt(1, DBConfig.EASTHAWKS_CONTACT);
                   break;
              ResultSet rs = pstmt.executeQuery();
              if (rs.next())
                   addr = rs.getString(1);
              rs.close();
              pstmt.close();
              return addr;
    }

    I need help modifying a servlet to send email using a smtp home base internet connection,,(Sympatico)
    with a username and password... and server name (smtp)obtain the name of the 'Sympatico' smtp server and use it as your SMTP_SERVER, you can't use localhost because I guess you don't have a smtp server at home....
    This is my servletNo, thats not a servlet.
    I can't comment on the code because you have not enclosed your code in code tags, like this {code}your code hereThanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Help with html / php contact form

    Hi guys I was hoping to get some help with a contact form on my website, to be honest I havent a clue about php but kind of okay with html thats why the php code is just a copy and paste from some website, just trying to marry it up with the html but getting errors.
    Hopfully one of you can see the problem.
    Error on Submitting:
    Notice: Undefined variable: name in \\nas44ent\Domains\g\gethinhayman.co.uk\user\htdocs\send_form_email.php on line 69
    Notice: Undefined variable: message in \\nas44ent\Domains\g\gethinhayman.co.uk\user\htdocs\send_form_email.php on line 75
    We are very sorry, but there were error(s) found with the form you submitted. These errors appear below.
    The Name you entered does not appear to be valid.
    The Comments you entered do not appear to be valid.
    HTML Code:
    <section id="contact" class="four">
                                                                <div class="container">
                                                                          <header>
                                                                                    <h2>Contact</h2>
                                                                          </header>
                                                                          <form method="post" action="send_form_email.php">
                                                                                    <div class="row half">
                                                                                              <div class="6u"><input type="text" class="text" name="name" placeholder="Name" /></div>
                                                                                              <div class="6u"><input type="text" class="text" name="email" placeholder="Email" /></div>
                                                                                    </div>
                                                                                    <div class="row half">
                                                                                              <div class="12u">
                                                                                                        <textarea name="message" placeholder="Message"></textarea>
                                                                                              </div>
                                                                                    </div>
                                                                                    <div class="row">
                                                                                              <div class="12u">
                                                                                                        <a href="http://www.mywebsite.co.uk/email_form.php" class="button submit">Send Message</a>
                                                                                              </div>
                                                                                    </div>
                                                                          </form>
                                                                </div>
                                                      </section>
    php Code:
    <?php
    if(isset($_POST['email'])) {
        $email_to = "my email address";
        $email_subject = "Mail from Site";
        function died($error) {
            // your error code can go here
            echo "We are very sorry, but there were error(s) found with the form you submitted. ";
            echo "These errors appear below.<br /><br />";
            echo $error."<br /><br />";
            echo "Please go back and fix these errors.<br /><br />";
            die();
        // validation expected data exists
        if(!isset($_POST['name']) ||
            !isset($_POST['email']) ||
            !isset($_POST['message'])) {
            died('We are sorry, but there appears to be a problem with the form you submitted.');      
        $first_name = $_POST['name']; // required
        $email_from = $_POST['email']; // required
        $comments = $_POST['message']; // required
        $error_message = "";
        $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
      if(!preg_match($email_exp,$email_from)) {
        $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
        $string_exp = "/^[A-Za-z .'-]+$/";
      if(!preg_match($string_exp,$name)) {
        $error_message .= 'The Name you entered does not appear to be valid.<br />';
      if(strlen($message) < 1) {
        $error_message .= 'The Comments you entered do not appear to be valid.<br />';
      if(strlen($error_message) > 0) {
        died($error_message);
        $email_message = "Form details below.\n\n";
        function clean_string($string) {
          $bad = array("content-type","bcc:","to:","cc:","href");
          return str_replace($bad,"",$string);
        $email_message .= "Name: ".clean_string($name)."\n";;
        $email_message .= "Email: ".clean_string($email)."\n";
        $email_message .= "Message: ".clean_string($message)."\n";
    // create email headers
    $headers = 'From: '.$email_from."\r\n".
    'Reply-To: '.$email_from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers); 
    ?>
    <?php
    ?>

    PHP CODE:  SaveAs send_form_email.php
    <?php
    if(isset($_POST['email'])) {
        // EDIT THE 2 LINES BELOW AS REQUIRED
        $email_to = "[email protected]";
        $email_subject = "Your email subject line";
        function died($error) {
            // your error code can go here
            echo "We are very sorry, but there were error(s) found with the form you submitted. ";
            echo "These errors appear below.<br /><br />";
            echo $error."<br /><br />";
            echo "Please go back and fix these errors.<br /><br />";
            die();
        // validation expected data exists
        if(!isset($_POST['name']) ||
            !isset($_POST['email']) ||
            !isset($_POST['message'])) {
            died('We are sorry, but there appears to be a problem with the form you submitted.');     
        $name = $_POST['name']; // required
        $email_from = $_POST['email']; // required
        $comments = $_POST['message']; // required
        $error_message = "";
        $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
      if(!preg_match($email_exp,$email_from)) {
        $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
        $string_exp = "/^[A-Za-z .'-]+$/";
      if(!preg_match($string_exp,$name)) {
        $error_message .= 'The Name you entered does not appear to be valid.<br />';
      if(strlen($message) < 2) {
        $error_message .= 'The message you entered does not appear to be valid.<br />';
      if(strlen($error_message) > 0) {
        died($error_message);
        $email_message = "Form details below.\n\n";
        function clean_string($string) {
          $bad = array("content-type","bcc:","to:","cc:","href");
          return str_replace($bad,"",$string);
        $email_message .= "Name: ".clean_string($name)."\n";
        $email_message .= "Email: ".clean_string($email_from)."\n";
        $email_message .= "Message: ".clean_string($message)."\n";
    // create email headers
    $headers = 'From: '.$email_from."\r\n".
    'Reply-To: '.$email_from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers);
    ?>
    <!-- include your own success html here -->
    Thank you for contacting us. We will be in touch with you very soon.
    <?php
    ?>
    HTML Code -- save as html page.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Contact Form</title>
    </head>
    <body>
    <section id="contact" class="four">
    <div class="container">
    <header>
    <h2>Contact</h2>
    </header>
    <form method="post" action="send_form_email.php">
    <div class="row half"> <div class="6u">
    <input type="text" class="text" name="name" placeholder="Name" />
    </div>
    <div class="6u">
    <input type="text" class="text" name="email" placeholder="Email" />
    </div>
    </div>
    <div class="row half"> <div class="12u">
    <textarea name="message" placeholder="Message"></textarea>
    </div>
    </div>
    <div class="row">
    <div class="12u">
    <input type="submit" name="submit" value="Send">
    </div>
    </div>
    </form>
    </div>
    </section>
    </body>
    </html>
    Upload both to your Apache server to test.
    EDIT:  changed typo on Submit button -- valuse to value.
    Nancy O.

  • Problem with 'Reply-To' on PHP contact form...

    Hi guys,
    I've created a PHP contact form which works perfectly; except, when I receive the email to my inbox and go to reply to it, it doesn't reply to the email address of the person who submitted the form - in the reply field it appears to have the default server email address.
    Here's my code which I have included in the same PHP page as my form:
    <?php
    if (array_key_exists('submit', $_POST)) {
        $name = $_POST['name'];
        $email = $_POST['email'];
        $formMessage = $_POST['message'];
    if (empty($name)) {
    $warning['name'] = "Please provide your name";
    if (empty($email)) {
    $warning['email'] = "Please provide your email address";
    if (empty($formMessage)) {
    $warning['message'] = "Please type your message";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $to = "[email protected]";
    $subject = "Enquiry 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 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;'></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/thankyou.php' ) ;
    ?>
    Can anyone see from my code why this would be happening?
    Thank you very much and hope to hear from you!
    SM

    Sorted!
    I removed...
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    ...and added...
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";

  • Grr. Cannot get PHP contact form to work.

    Hi!
    I cannot get a PHP contact form working. I have tried
    everything i can think of (which isn't much!) and can't get it to
    work. This is what i am using. Can anybody see what's wrong with
    this please? As you can see, the form contains a fromname,
    fromemail, subject and message fields.
    I'm a complete newb when it comes to PHP. Please please
    please help.

    Thanks for your reply.
    I just used the PHP provided in
    this
    tutorial?! Is the tutorial wrong?
    Sorry. As i said, i know nothing about PHP. How do i define
    the variables.

  • PHP Contact Form Problem

    Hi all,
    I'm trying to use a php Contact form and it's throwing up an error even before I click submit. As a newbie to PHP I don't really know where I am going wrong.
    Here's the link to the contact form.
    http://www.thesketchcollective.co.uk/clients/form-example/myform1.php
    Secondly, I would also like the form to send an email as well as send the info to CSV format. It currently just sends it to a CSV.
    Any help would be appreciated.
    Cheers
    Tom

    <?php
    if($_POST['formSubmit'] == "Submit")
    $errorMessage = "";
    if(empty($_POST['formMovie']))
    $errorMessage .= "<li>You forgot to enter a movie!</li>";
    if(empty($_POST['formName']))
    $errorMessage .= "<li>You forgot to enter a name!</li>";
    $varMovie = $_POST['formMovie'];
    $varName = $_POST['formName'];
    if(empty($errorMessage))
    $fs = fopen("mydata.csv","a");
    fwrite($fs,$varName . ", " . $varMovie . "\n");
    fclose($fs);
    header("Location: thankyou.html");
    exit;
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>My Form</title>
    </head>
    <body>
    <?php
    if(!empty($errorMessage))
    echo("<p>There was an error with your form:</p>\n");
    echo("<ul>" . $errorMessage . "</ul>\n");
    ?>
    <form action="myform1.php" method="post">
    <p>
    What is your favorite movie?<br>
    <input type="text" name="formMovie" maxlength="50" value="<?=$varMovie;?>" />
    </p>
    <p>
    What is your name?<br>
    <input type="text" name="formName" maxlength="50" value="<?=$varName;?>" />
    </p>
    <input type="submit" name="formSubmit" value="Submit" />
    </form>
    </body>
    </html>

  • PHP contact form problems

    I've tried editing my contact form in a way that I could edit it. But, recently I've tried replacing the color behind my submit button. Instead the images I placed behind the text boxes end up being placed behind the submit button. If you could help me figure this out, that would be great Also if you have the chance, could you tell me how to get rid of the message area boxes' color and change it to transparent... and help me place an image behind it to replace the color. Thanks
    <?php
    //If the form is submitted
    if(isset($_POST['submit'])) {
    //Check to make sure that the name field is not empty
    if(trim($_POST['contactname']) == '') {
    $hasError = true;
    } else {
    $name = trim($_POST['contactname']);
    //Check to make sure that the subject field is not empty
    if(trim($_POST['subject']) == '') {
    $hasError = true;
    } else {
    $subject = trim($_POST['subject']);
    //Check to make sure sure that a valid email address is submitted
    if(trim($_POST['email']) == '') {
    $hasError = true;
    } else if (!eregi("^[A-Z0-9.%-]@[A-Z0-9.%-].[A-Z]{2,4}$", trim($_POST['email']))) {
    $hasError = true;
    } else {
    $email = trim($_POST['email']);
    //Check to make sure comments were entered
    if(trim($_POST['message']) == '') {
    $hasError = true;
    } else {
    if(function_exists('stripslashes')) {
    $comments = stripslashes(trim($_POST['message']));
    } else {
    $comments = trim($_POST['message']);
    //If there is no error, send the email
    if(!isset($hasError)) {
    $emailTo = '[email protected]'; //Put your own email address here
    $body = "Name: $name
    Email: $email
    Subject: $subject
    Comments:
    $comments";
    $headers = 'From: Barca Graphics Contact form <'.$emailTo.'>' . "
    " . 'Reply-To: ' . $email;
    mail($emailTo, $subject, $body, $headers);
    $emailSent = true;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>PHP Contact Form with JQuery Validation</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
    <script src="jquery.validate.pack.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    $("#contactform").validate();
    </script>
    <style type="text/css">
    body {
    font-family:Arial, Tahoma, sans-serif ;
    #contact-wrapper {
    width:429px;
    border:;
    background:transparent ;
    padding:;
    #contact-wrapper div {
    clear:both;
    margin:1em 0;
    #contact-wrapper label {
    display:block;
    float:none;
    font-size:16px;
    width:auto;
    form#contactform input {
    background-color:transparent;;
    background-image:url('http://submitpage.webege.com/images/shapeimage_2.png');
    border-width:0px;
    padding:6px;
    padding-bottom:10px;
    font-size:16px;
    color:none;
    form#contactform textarea {
    font-family:Arial, Tahoma, Helvetica, sans-serif;
    font-size:100%;
    padding:0.6em 0.5em 0.7em;
    border-color:transparent;;
    border-style:transparent;
    border-width:1px;
    </style>
    </head>
    <body>
    <form method="post" action="<?php echo $SERVER['PHPSELF']; ?>" id="contactform">
    <label for="name"></label>
    <input type="text" size="50" name="contactname" id="contactname" value="Name" class="required"/>
    <label for="email"></label>
    <input type="text" size="50" name="email" id="email" value="Email" />
    <label for="subject"></label>
    <input type="text" size="50" name="subject" id="subject" value="Subject" />
    <label for="message"></label>
    <textarea rows="5" cols="50" name="message" id="message" class="required"></textarea>
    <input type="submit" value="Send" name="submit" />
    </form>
    <?php if(isset($hasError)) { //If errors are found ?>
    Please check if you've filled all the fields with valid information. Thank you.
    <?php } ?>
    <?php if(isset($emailSent) && $emailSent == true) { //If email is sent ?>
    Email Successfully Sent!
    Thank you <?php echo $name;?> for contacting Barca Graphics.
    <?php } ?>
    </body>
    </html>

    ereg() has been deprecated, it is recommended that you dont use it.
    You want to look at this
    http://www.php.net/manual/en/function.preg-match.php
    Within this page I found this:
    If you need to check for .com.br and .com.au and .uk and all the other crazy domain endings i found the following expression works well if you want to validate an email address. Its quite generous in what it will allow
    <?php
            $email_address = "phil.taylor@a_domain.tv";
         if (preg_match("/^[^@]*@[^@]*\.[^@]*$/", $email_address)) {
             return "E-mail address";        
    ?>

  • My Client is having a serious problem with the Contact Form Widget

    My Client is having a serious problem with the Contact Form Widget that I can not figure out how to correct.
    I created a website for a client and inserted a Contact Form widget on their 'Contact Us' page. Whenever anyone uses the form, the e-mail my client receive shows my e-mail address as the sender. So, when they 'reply' to the e-mail, the reply is sent to me and not the person who sent the original message. This creates a major problem in that I get barraged with e-mail replies while my client's potential customers go without a response.
    When I look at  'Site Manager > System E-Mails > Workflow Information > E-mail From Address' on the site's Admin Console, it shows my e-mail information. Is this is what needs to be changed?  If it is, what needs to be placed in that field so that the e-mail my client receives shows the senders e-mail information in the 'From' field.  My client wants to be able to click reply and have the message sent to the right party. They would be very upset if they have to cut and past the senders e-mail address from the body text on every contact they receive.
    Their feeling is that if I can't find a way to make the contact form work the way it should, then it's useless to them.
    Can anyone help me figure this out? I really don't want to disappoint my first client.

    Are you on a plan that has the CRM feature that stores your customers' data? If so, the idea of the contact form is that you'll receive a notification that there's been an inquiry filled out on your contact form and there should be a link in that email notification that leads to the "Case" that was created when that customer filled out a contact form.  You can click that link and visit the case for that customer in your BC site and reply to them from there so that all of the correspondence is logged in the CRM for safe-keeping and for your records.
    If your client finds this is too much work to login to BC to reply every time, then you should check to see if you have the "Customer Service Ticketing" feature on your hosting plan.  This is a feature where you create a dedicated email account (like [email protected]) and the BC system will automatically login to that email account and pull any emails in that inbox and convert them to a customer case for the sender of the email and then it will send out a notification via email to any of the BC Admin users you delegate as "Customer Service Agents".  Since the CST integrates with the BC CRM it lets you reply directly within the email-- but when you reply it will be going to that same email address dedicated to the CST but once the CST service checks your email again and sees that you replied to this inquiry it will log your reply against the customer's case and sends your reply via email back to them so that all the correspondance gets logged on BC's CRM but you can still reply via email.
    There's no way to use the default web forms to update the "From" or "Reply-To" address.. it must come from an approved email address to avoid spam issues.  On most web services you cannot change the "from" address anyway but usually you can at least specify the "Reply-To" address so that when someone hits "reply" in their email client it will reply to whoever you setup as the "Reply-To" address.
    Here's some more information about CST: http://kb.worldsecuresystems.com/kb/customer-service-ticketing.html?bc-partner
    I don't think the CST feature is in the webMarketing BC plan-- I think it's only in the webCommerce plan so if you have less than an webCommerce plan you have to tell your client to reply through BC by clicking the link in the notification they get.  You can justify it by saying its one or two more steps but it keeps the entire convo on record in their CRM for easy referral later.

  • Flash and PHP contact form.

    Hi, I created a simple web site in flash cs4 with a contact form, however, when I press submit, no email is sent even though my site says it was successfully sent.  If anyone could give any advice on what I could possibly being doing wrong that would be great.
    Thanks, Anthony.
    Here is my actionscript and PHP:
    function submit(e:MouseEvent):void
    var variables:URLVariables = new URLVariables();
    variables.fromname = nameText.text;
    variables.fromemail = emailText.text;
    variables.frommessage = messageText.text;
    var req:URLRequest = new URLRequest("contact.php");
    req.data = variables;
    req.method = URLRequestMethod.POST;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, sent);
    loader.addEventListener(IOErrorEvent.IO_ERROR, error);
    loader.load(req);
    statusText.text = "Sending...Please wait.";
    function sent(e:Event):void
    statusText.text = "Your email has been sent.";
    nameText.text = emailText.text = messageText.text = "";
    function error(e:IOErrorEvent):void
    statusText.text = "Error, please try again.";
    sendButton.addEventListener(MouseEvent.CLICK, submit);
    PHP:
    <?php
    $sendTo = "[email protected]( I am aware this needs to be different)";
    $subject = "Email from Web site";
    $name = $_POST['fromname'];
    $from = $_POST['fromemail'];
    $message = $_POST['frommessage'];
    $message = stripslashes($message);
    $content = "Name: " . $name . "\n";
    $content .= "Email: " . $from . "\n\n";
    $content .= $message;
    if (mail($sendto,$subject,$content))
    echo 'response=passed';
    else
    echo 'response=failed';
    ?>

    I had the correct case in my code, so that was not the problem.  It appears that the there is no communication with the server.  Do you have any other ideas as to why the send button would not actually being contacting the server?
    Thanks for the help

  • Help with complex Acrobat forms

    Hi Everyone,
    Background: I worked with another developer and completed a form for one of our clients but I need to know if the below change requests are even possible and if so if anyone would like to help with finishing the form. I am definitely willing to pay for an experts services as long as this can be done in a timely manner.
    What the form is - Our client wants a form that has text fields, drop down boxes and pages where images can be placed into the file and arrows drawn on it to point where the images are located on other images (some images are store layout maps). They would like to send this file out to their store managers, have them fill it in and then they would like the completed forms sent back so all of the information that was filled in (names, store names, addresses, square footage, etc) can be gathered into a database or excel file.
    What is completed so far
    - Cascading drop down boxes (user clicks on first drop down and whatever is selected changes the second drop down options, etc)
    - Most of the text fields for information gathering including city, state, store manager etc
    - Metric unit conversion boxes
    - Header text fields (read only) are used on several of the pages and are a combination of choices made in the drop down boxes and text fields.
    - Page footer info including page number
    - The over all layout of the pages is set
    Requested changes/additions
    Major must have:
    - Page Addition - There is a product page in the form (page 10) and the different stores will have a different number of these products to enter into the form so is there a way to add an ADD PAGE button on the page that when pressed will copy the product page to make a new product page? Now the product page has cascading drop down form fields on it so I would want to make sure the form fields are separate iterations of the form fields not just a duplicate of what was on the product page.
    - Footer adjustments - If we can do the above of adding pages then is it possible to at that point adjust the footer to reflect the page number changes? The footer shows the current page number then the form name and date.
    - Gather info - What is the best way to distribute these forms so that when returned completed the information can be gathered? I tried distributing via email which seems to work ok but the files might end up being too large for email so what is the best way to gather the completed info if say the files were ftp'd back?
    Minor:
    There are several minor change requests that I know are doable or that if not possible we can disregard. One that I am not sure about is if the color of the arrows in Acrobat can be changed from the default red?
    At first I was assuming that the Clients that get the forms needed Acrobat Standard or Pro 8 or 9 because I thought that the only way to add images was to use the Touch-Up Tool under advanced tools and right click to Place images. However I am pretty sure that if Reader Rights is enabled that images can be copy pasted into the file too if this is incorrect please let me know.
    If the above is not doable or if there is a better solution other than Acrobat forms to gather client information including allow the client to add images and place arrows then please let me know your thoughts.
    Any help or suggestions would be greatly appreciated and again id like to commission this out to anyone who is up for the challenge.
    Thanks in advance
    Jason

    Perhaps a better question is does anyone know a good developer?

  • Need help with Adobe Interactive Form Saving

    Hi Gurus,
    I need your help with Adobe Interactive form saving.
    I have written the code in pre-save event to prompt a message when user didn't enter any value before saving. The form data should not be saved upon clicking save (Just prompt the message and exit form the form). Can u please advice me how to do this.
    Regards,
    Srini

    see the link: http://forms.stefcameron.com/2008/04/
    it says:
    preSave: Failed validations will not prevent the form from being saved however Acrobat/Reader will issue a special warning message, after issuing the validation error message, to inform the user that the validations failed. Iu2019m guessing this is because the user may be saving the form to continue filling it at a later time so the save canu2019t be completely prevented.
    regards,
    BJagdishwar.

Maybe you are looking for

  • Travel adapter for IPod touch 32 GB 3rd generation

    Dear All, I do have a brand new IPod touch 32 GB, 3rd generation. As I will be travelling to the US I need a travel adapter. The travel adapter offered by Apple is per description only compatible with the 1st and 2nd generation. Are you experienced?

  • Drag and drop broken in Mavericks?

    The drag & drop functionality keeps dropping out. The only way to get it back is to reboot. When it goes out I can't even move icons on my desktop. I can select them and double click to open but no dragging. It seems that when I attempt to drag a cop

  • Add encoding option to embeded OC4J

    Hi, Can you help me to add the -Dfile.encoding option to embeded OC4J? I like to know, where this line is built when starting OC4J? C:\j2sdk1.4.2\bin\javaw.exe -ojvm -XXdebug,quiet,port1075 -classpath C:\jDeveloper10G\j2ee\home\oc4j.jar;C:\jDeveloper

  • CSA Agent not registering with CSA MC

    I have downloaded and installed my agent kit on a WinXP machine. But for some reason it is not registering with the CSA MC. Any idea why? The CSAMC is in a different subnet, but 443 is open for communication. Does the MC need other ports open to talk

  • Scale Pricing

    Hi, I am facing an issue where i have maintained scales as shown below: Scale Type     Scale Quantity     Unit    Amount     Unit    per   UOM From                  1                       DAY   4200         SGD   7      DAY