Formmail.php

hello there. i've been using the formmail.php by Jacks's
Scripts (
http://www.dtheatre.com/scripts/),
and i like it because it's really simple and does what i want it to
do. however, so far i've been just been renaming it and using a
separate one for each form that i've created. but i have a couple
forms that go to the same email and thanks page, just the email
subject is different, so i'd like to use the same formmail.php
instead of having a separate one for each form and cluttering up my
folders even more.
supposedly all i have to do is put <input type="hidden"
name="subject" value="subject"> inside the form, but that's not
working. and that's all the documentation says, so i don't know if
i'm supposed to do something else inside the php or what. i know
where to add the subject in the php when it doesn't change, but i
can't figure out how to make it take the subject from the form.
so, if anyone knows what i should do, that would be great.
thanks!
here's the form code:
<form id="form1" name="Web Listing Request" method="POST"
action="formmail-test.php"><input type="hidden"
name="subject" value="Web Listing Request">
and here's the php (i'm just posting the part where you're
supposed to set the subject, but i can post the rest if necessary):

> hello there. i've been using the formmail.php by Jacks's
Scripts
> (
http://www.dtheatre.com/scripts/)
(quote)01/25/2006 - News and such..
I know you all hate me. In the last 3 years I've been real
busy and this
project has become abandoned.(/quote)
suggestion:
http://boaddrink.com
-->phpformmail
it will be pretty much a drop in replacement. just check the
exact field
names of any of the ones used to control the script, such as
recipient,
email, subject and so on.
i've posted quickee versions of how to get it working in the
past if you
want to just skim the readme and get it working.
http://groups.google.com/group/macromedia.dreamweaver/browse_frm/thread/2db7
5d215c2d6653/c39b61a0aae64c12?lnk=gst&q=alan+recipient_alias+boaddrink.com&r
num=2#c39b61a0aae64c12
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/

Similar Messages

  • I can't get formMail.php to recognize my simple Spry Radio Group button

    I don't know php at all, but I have a dreamweaver form that sends its information to a document called "formmail.php" and that sends the email to me.
    I was able to add text fields by duplicating the text field code in the formmail.php file and it does work, BUT i don't know what code should be on the file to process the radio button information. The radio button group is made up of 2 buttons "Yes" and "No"
    This is a abbreviated version of "formmail.php"
    <body>
    <?php
      $name=addslashes($_POST['name']);
      $address=addslashes($_POST['address']);
      $email=addslashes($_POST['email']);
      $radioGroup1=addslashes($_POST['arrangements']);
      $comments=addslashes($_POST['message']);
    // you can specify which email you want your contact form to be emailed to here
      $toemail = "[email protected]";
      $subject = "From the VFS website";
      $headers = "MIME-Version: 1.0\n"
                ."From: \"".$name."\" <".$email.">\n"
                ."Content-type: text/html; charset=iso-8859-1\n";
      $body = "Name: ".$name."<br>\n"
                ."Address: ".$address."<br>\n"
    ."Email: ".$email."<br>\n"
    ."Have you made pre-arrangements?: ".$radioGroup1."<br>\n"
                ."Comments:<br>\n"
                .$comments;
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $headers);
        echo "Thanks for submitting your comments";
    ?>
    </body>
    </html>
    And this is what the code for my Spry Radio Group button is looking like.
    <p id="arrangements"><span id="spryradio1">
                                          <label>
                                            <input type="radio" name="RadioGroup1" value="Yes" id="RadioGroup1_0">
                                            Yes  </label>
                                          <label>
                                            <input type="radio" name="RadioGroup1" value="No" id="RadioGroup1_1">
                                            No</label>
                                            <br>
                                          <br>
    </span></p>
    Please help - I'm lost!

    The post form method gets a variable, by name and sends that value to your processor.  You have called $_POST['attachments'] which is the name of the container <p> tag and not of the radio group.  So change:
    $radioGroup1=addslashes($_POST['arrangements']);
    to
    $radioGroup1=addslashes($_POST['RadioGroup1']);
    That changes the <p> arrangements to the RadioGroup1 which is the name you gave the radio group.

  • Attach Photo in formmail.php

    I have created a form with name, phone, email, message and attach photo. When I fill out the form and email it back to me everything but the attach photo works. A friend told me that I'm trying to handle the photo attachment like the other fields and it won't work. Unfortunately he didn't have an answer for what would work. I've pasted the formamail.php file in question below. I want to be able to allow users to attach up to 8 photos. Any suggestions?
    Thanks
    Iainhttp://localhost/pinkg_local/formmail.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" />
    <META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
    <title>Email Form</title>
    </head>
    <body>
    <?php
      $name=addslashes($_POST['name']);
      $phone=addslashes($_POST['phone']);
      $email=addslashes($_POST['email']);
      $comments=addslashes($_POST['message']);
      $photos1=addslashes($_POST['photos1']);
      $photos2=addslashes($_POST['photos2']);
      $photos3=addslashes($_POST['photos3']);
      $photos4=addslashes($_POST['photos4']);
      $photos5=addslashes($_POST['photos5']);
      $photos6=addslashes($_POST['photos6']);
      $photos7=addslashes($_POST['photos7']);
      $photos8=addslashes($_POST['photos8']);
    // you can specify which email you want your contact form to be emailed to here
      $toemail = "[email protected]";
      $subject = "Consignment Photos";
      $headers = "MIME-Version: 1.0\n"
                ."From: \"".$name."\" <".$email.">\n"
                ."Content-type: text/html; charset=iso-8859-1\n";
      $body = "Name: ".$name."<br>\n"
                ."Email: ".$email."<br>\n"
                ."Phone:  ".$phone."<br>\n"
                 ."Comments:".$comments."<br>\n"
                    ."Photos1: ".$photos1."<br>\n"
                  ."Photos2: ".$photos2."<br>\n"
                   ."Photos3: ".$photos3."<br>\n"
                    ."Photos4: ".$photos4."<br>\n"
                     ."Photos5: ".$photos5."<br>\n"
                      ."Photos6: ".$photos6."<br>\n"
                       ."Photos7: ".$photos7."<br>\n"
                        ."Photos8: ".$photos8."<br>\n";
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $headers);
        echo "Thanks for submitting your comments today";
    ?>
    </body>
    </html>

    I gave up and bought a script. Best $29 I ever spent!

  • FormToEmail.php is not working correctly

    When you press the submit button on my form nothing happens. Please help!!!!! 
    Here is my form HTML:
        <h1>Request A Life Insurance Quote    </h1>
        <table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="590" valign="top"><form id="FrmLifeQuote" name="FrmLifeQuote" method="post" action="formmail.php">
              <fieldset class="text">
            <legend></legend>
            <p><span id="sprytextfield1">
                <label for="First_Name">First Name:</label>
                <input type="text" name="First_Name" id="First_Name" tabindex="10" />
                <span class="textfieldRequiredMsg">[required]</span></span></p>
              <p><span id="sprytextfield2">
                <label for="name">Last Name:</label>
                <input type="text" name="name" id="name" tabindex="20"/>
                <span class="textfieldRequiredMsg"> [required]</span></span></p>
              <p><span id="sprytextfield3">
              <label for="Email">Email Address:</label>
              <input type="text" name="Email" id="Email" tabindex="30" />
              <span class="textfieldRequiredMsg">[required]</span></span></p>
              <p><span id="sprytextfield4">
              <label for="PhoneNumber">Phone Number:</label>
              <input type="text" name="PhoneNumber" id="PhoneNumber" tabindex="40" />
              <span class="textfieldRequiredMsg">[required]</span></span></p>
              </fieldset>
              <fieldset>
               <p>
              <legend class="text"></legend>          
               <p>Birthday      <span id="spryselect1">
                <label for="Month"></label>
                <select name="Month" id="Month" tabindex="50">
                <option value="MM">MM</option>
                <option value="01">01</option>
                <option value="02">02</option>
                <option value="03">03</option>
                <option value="04">04</option>
                <option value="05">05</option>
                <option value="06">06</option>
                <option value="07">07</option>
                <option value="08">08</option>
                <option value="09">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
              </select>
              <label for="Day"></label>
              <select name="Day" id="Day" tabindex="51">
                <option value="DD">DD</option>
                <option value="01">01</option>
                <option value="02">02</option>
                <option value="03">03</option>
                <option value="04">04</option>
                <option value="05">05</option>
                <option value="06">06</option>
                <option value="07">07</option>
                <option value="08">08</option>
                <option value="09">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
                <option value="13">13</option>
                <option value="14">14</option>
                <option value="15">15</option>
                <option value="16">16</option>
                <option value="17">17</option>
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>
                <option value="25">25</option>
                <option value="26">26</option>
                <option value="27">27</option>
                <option value="28">28</option>
                <option value="29">29</option>
                <option value="30">30</option>
                <option value="31">31</option>
                </select>
                <span class="selectRequiredMsg">Please select an item.</span></span><span id="sprytextfield5">
                <label for="Year"></label>
                <input name="Year" type="text" id="Year" tabindex="52" value="YYYY" size="8" />
                <span class="textfieldRequiredMsg">[required]</span></span></p>
              <p><span id="spryselect2">
                <label for="Gender">Gender:</label>
                <select name="Gender" id="Gender" tabindex="60">
                  <option value="Select">Select</option>
                  <option value="Female">Female</option>
                  <option value="Male">Male</option>
                </select>
                <span class="selectRequiredMsg">Please select an item.</span></span><span class="textfieldRequiredMsg">[required]</span></p>
              <p class="text">
                <label for="CoverageAmount">Coverage Amount:</label>
                <input type="text" name="CoverageAmount" id="CoverageAmount" tabindex="70" />
                <span class="textfieldRequiredMsg">[required]</span></p>
              <p>
              <label for="CoverageLength">Coverage Length:</label>
              <select name="CoverageLength" class="text" id="CoverageLength" tabindex="80">
                <option value="Select" selected="selected">Select</option>
                <option value="10 Year">10 Year</option>
                <option value="15 Year">15 Year</option>
                <option value="20 Year">20 Year</option>
                <option value="25 Year">25 Year</option>
                <option value="30 Year">30 Year</option>
                <option value="UL">UL</option>
              </select>
              <span class="textfieldRequiredMsg">[required]</span></p>
              <p class="text">
              <label for="TobaccoUse">Tobacco Use:</label>
              <select name="TobaccoUse" id="TobaccoUse" tabindex="80">
                <option value="Select" selected="selected">Select</option>
                <option value="None">None</option>
                <option value="Cigarette">Cigarette</option>
                <option value="Cigar">Cigar</option>
                <option value="Pipe">Pipe</option>
                <option value="Chewing Tobacco">Chewing Tobacco</option>
                <option value="Nicotine Patch">Nicotine Patch</option>
                <option value="Gum">Gum</option>
              </select>
              <span class="textfieldRequiredMsg">[required]</span></p>
              <p class="text">Have you ever been treated for Cancer, Heart Disease, Stroke, Diabetes, High Blood Pressure, Alcohol or Drug Abuse, Depression, Asthma, or any other similar conditions?                    <br />         
              <p>
                <label>
                  <input type="radio" name="RadioGroup1" value="Yes" id="RadioGroup1_0" />
                  Yes</label>
                <br />
                <label>
                  <input type="radio" name="RadioGroup1" value="No" id="RadioGroup1_1" />
                  No</label>
                <br />
              </p>
              <p class="text">Do you have more than 2 citations for moving violations in the past three years?          
              <p>
                <label>
                  <input type="radio" name="RadioGroup2" value="Yes" id="RadioGroup2_0" />
                  Yes</label>
                <br />
                <label>
                  <input type="radio" name="RadioGroup2" value="No" id="RadioGroup2_1" />
                  No</label>
                <br />
              </p>
              <p class="text">Do you do any hazardous activities?
              <p>
                <label>
                  <input type="radio" name="RadioGroup3" value="Yes" id="RadioGroup3_0" />
                  Yes</label>
                <br />
                <label>
                  <input type="radio" name="RadioGroup3" value="No" id="RadioGroup3_1" />
                  No</label>
                <br />
              </p>
              <p class="text">
                <input type="submit" name="Submit" id="Submit" value="Request A Life Insurance Quote" tabindex="130" />
                <form action="FormToEmail.php">
            </form></td>
          </tr>
        </table>
        <h1><script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "email");
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "phone_number");
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "none", {minChars:2, maxChars:4});
    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {validateOn:["blur", "change"]});
          </script></h1>
    Here is the FormToMail.php:
    <?php
    $my_email = "[email protected]";
    $continue = "page_ContactThanks.html";
    $errors = array();
    // Remove $_COOKIE elements from $_REQUEST.
    if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}}
    // Check all fields for an email header.
    function recursive_array_check_header($element_value)
    global $set;
    if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc: )/i",$element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);}
    recursive_array_check_header($_REQUEST);
    if($set){$errors[] = "You cannot send an email header";}
    unset($set);
    // Validate email field.
    if(isset($_REQUEST['Email']) && !empty($_REQUEST['Email']))
    if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['Email'])){$errors[] = "Email address may not contain a new line or a colon";}
    $_REQUEST['Email'] = trim($_REQUEST['Email']);
    if(substr_count($_REQUEST['Email'],"@") != 1 || stristr($_REQUEST['Email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['Email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}}
    // Check referrer is from same site.
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
    // Check for a blank form.
    function recursive_array_check_blank($element_value)
    global $set;
    if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);}
    recursive_array_check_blank($_REQUEST['message']);
    if(!$set){$errors[] = "You cannot send a blank form";}
    unset($set);
    // Display any errors and exit if errors exist.
    if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;}
    if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");}
    // Build message.
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST);
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."Thank you. Your message has been sent";
    $message = stripslashes($message);
    $subject = "ASA Services Message";
    $headers = "From: " . $_REQUEST['Email'];
    ?>
    </body>
    </html>

    I went through and changed the spry validation fields to just text fields and now everything seems to be working but I do not recieve the email. It gets the error message "invalid email address. Please return to the previous page. Any idea why this is happening? My email address is entered correctly.
    <!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" />
    <META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
    <title>Email Form</title>
    </head>
    <body>
    <?php
      $Name=addslashes($_POST['Name']);
      $Email=addslashes($_POST['Email']);
      $PhoneNumber=addslashes($_POST['Phone']);
      $Birthday=addslashes($_POST['Birthday']);
      $DDD=addslashes($_POST['DD']);
      $YYYY=addslashes($_POST['YYYY']);
      $Gender=addslashes($_POST['Gender']);
      $CoverageAmount=addslashes($_POST['CoverageAmount']);
      $CoverageLength=addslashes($_POST['CoverageLength']);
      $TobaccoUse=addslashes($_POST['TobaccoUse']);
      $radioGroup1=addslashes($_POST['RadioGroup1']);
      $radioGroup2=addslashes($_POST['RadioGroup2']);
      $radioGroup3=addslashes($_POST['RadioGroup3']);
      $toemail = "[email protected]";
      $subject = "From PrivateInsuranceBrokers.com";
      $headers = "MIME-Version: 1.0\n"
                ."From: \"".$name."\" <".$email.">\n"
                ."Content-type: text/html; charset=iso-8859-1\n";
      $body =  "First_Name: ".$Name."<br>\n"
              ."Email: ".$Email."<br>\n"
      ."PhoneNumber: ".$Phone."<br>\n"
      ."Birthday: ".$Birthday."<br>\n"
              ."DD: ".$DD."<br>\n"
      ."YYYY: ".$YYYY."<br>\n"
      ."Gender: ".$Gender."<br>\n"
      ."CoverageAmount: ".$CoverageAmount."<br>\n"
      ."CoverageLength: ".$CoverageLength."<br>\n"
      ."TobaccoUse: ".$TobaccoUse."<br>\n"
        ."radioGroup1: ".$RadioGroup1."<br>\n"
            ."radioGroup2: ".$RadioGroup2."<br>\n"
      ."radioGroup3: ".$RadioGroup3."<br>\n";
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $headers);
        echo "Thank you for submitting your Life Insurance Request. Our agency will contact you shortly";
    ?>
    </body>
    </html>
    Form Code:
        <h1 align="center">Request A Life Insurance Quote    </h1>
        <div align="center">
          <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="590" height="984" valign="top"><form id="FrmLifeQuote" name="FrmLifeQuote" method="post" action="formmail.php">
                  <div align="left"></div>
                  <fieldset class="text">
                    <p align="left">
                      <label for="Name">Name:</label>
                      <input type="text" name="Name" id="Name" tabindex="10" />
                    </p>
                  <p align="left">
                    <label for="Email2">Email:</label>
                    <input type="text" name="Email" id="Email2" tabindex="20" />
                  </p>
                  <p align="left">
                    <label for="Phone">Phone Number:</label>
                    <input type="text" name="Phone" id="Phone" tabindex="30" />
                  </p>
                  <p align="left"> </p>
                  </fieldset>
                <fieldset>
                <p align="left">
                  <legend class="text"></legend>          
                  <p align="left">
                    <label for="Birthday">Birthday:</label>
                    <select name="Birthday" id="Birthday" tabindex="40">
                      <option value="MM">MM</option>
                      <option value="01">01</option>
                      <option value="02">02</option>
                      <option value="03">03</option>
                      <option value="04">04</option>
                      <option value="05">05</option>
                      <option value="06">06</option>
                      <option value="07">07</option>
                      <option value="08">08</option>
                      <option value="09">09</option>
                      <option value="10">10</option>
                      <option value="11">11</option>
                      <option value="12">12</option>
    </select>
                    <select name="DD" id="DD" tabindex="50">
                      <option value="DD">DD</option>
                      <option value="01">01</option>
                      <option value="02">02</option>
                      <option value="03">03</option>
                      <option value="04">04</option>
                      <option value="05">05</option>
                      <option value="06">06</option>
                      <option value="07">07</option>
                      <option value="08">08</option>
                      <option value="09">09</option>
                      <option value="10">10</option>
                      <option value="11">11</option>
                      <option value="12">12</option>
                      <option value="13">13</option>
                      <option value="14">14</option>
                      <option value="15">15</option>
                      <option value="16">16</option>
                      <option value="17">17</option>
                      <option value="18">18</option>
                      <option value="19">19</option>
                      <option value="20">20</option>
                      <option value="21">21</option>
                      <option value="22">22</option>
                      <option value="23">23</option>
                      <option value="24">24</option>
                      <option value="25">25</option>
                      <option value="26">26</option>
                      <option value="27">27</option>
                      <option value="28">28</option>
                      <option value="29">29</option>
                      <option value="30">30</option>
                      <option value="31">31</option>
                    </select><label for="YYYY"></label>
                    <input name="YYYY" type="text" id="YYYY" tabindex="60" value="YYYY" />
                  </p>
                  <p align="left">
                    <label for="Gender">Gender:</label>
                    <select name="Gender" id="Gender" tabindex="70">
                      <option value="Select">Select</option>
                      <option value="Female">Female</option>
                      <option value="Male">Male</option>
                    </select>
                  </p>
                  <p align="left">
                    <label for="CoverageAmount">Coverage Amount:</label>
                  <select name="CoverageAmount" id="CoverageAmount" tabindex="80">
                    <option value="Select">Select</option>
                    <option value="$250,000">$250,000</option>
                    <option value="$500,000">$500,000</option>
                    <option value="$750,000">$750,000</option>
                    <option value="$1,000,000">$1,000,000</option>
                    <option value="$1,250,000">$1,250,000</option>
                    <option value="$1,500,000">$1,500,000</option>
                    <option value="$1,750,000">$1,750,000</option>
                    <option value="$2,000,000">$2,000,000</option>
                    <option value="$2,500,000">$2,500,000</option>
                    <option value="$3,000,000">$3,000,000</option>
                    <option value="$3,500,000">$3,500,000</option>
                    <option value="$4,000,000">$4,000,000</option>
                    <option value="$5,000,000">$5,000,000</option>
                  </select>
              </p>
                <p align="left">
                  <label for="CoverageLength">Coverage Length:</label>
                  <select name="CoverageLength" id="CoverageLength"tabindex="81">
                    <option value="Select" selected="selected">Select</option>
                    <option value="10 Year">10 Year</option>
                    <option value="15 Year">15 Year</option>
                    <option value="20 Year">20 Year</option>
                    <option value="25 Year">25 Year</option>
                    <option value="30 Year">30 Year</option>
                    <option value="UL">UL</option>
                    </select>
                </p>
                <p align="left" class="text">
                  <label for="TobaccoUse">Tobacco Use:</label>
                  <select name="TobaccoUse" id="TobaccoUse" tabindex="90">
                    <option value="Select" selected="selected">Select</option>
                    <option value="None">None</option>
                    <option value="Cigarette">Cigarette</option>
                    <option value="Cigar">Cigar</option>
                    <option value="Pipe">Pipe</option>
                    <option value="Chewing Tobacco">Chewing Tobacco</option>
                    <option value="Nicotine Patch">Nicotine Patch</option>
                    <option value="Gum">Gum</option>
                    </select>
                </p>
                <p align="left" class="text">Have you ever been treated for Cancer, Heart Disease, Stroke, Diabetes, High Blood Pressure, Alcohol or Drug Abuse, Depression, Asthma, or any other similar conditions?                    <br />         
                  <p align="left">
                    <label>
                      <input type="radio" name="RadioGroup1" value="Yes" id="RadioGroup1_0" />
                    Yes</label>
                    <br />
                    <label>
                      <input type="radio" name="RadioGroup1" value="No" id="RadioGroup1_1" />
                    No</label>
                    <br />
                  </p>
                <p align="left" class="text">Have you had more than 2 citations for moving violations in the past three years?          
                  <p align="left">
                    <label>
                      <input type="radio" name="RadioGroup2" value="Yes" id="RadioGroup2_0" />
                    Yes</label>
                    <br />
                    <label>
                      <input type="radio" name="RadioGroup2" value="No" id="RadioGroup2_1" />
                    No</label>
                    <br />
                  </p>
                <p align="left" class="text">Do you do any hazardous activities?
                  <p align="left">
                    <label>
                      <input type="radio" name="RadioGroup3" value="Yes" id="RadioGroup3_0" />
                    Yes</label>
                    <br />
                    <label>
                      <input type="radio" name="RadioGroup3" value="No" id="RadioGroup3_1" />
                    No</label>
                    <br />
                  </p>
                <p align="left" class="text">
                  <input type="submit" name="Submit" id="Submit" value="Request A Life Insurance Quote" tabindex="130" />
                <p align="left" class="text">             
                <p align="left" class="text">           
              </form></td>
            </tr>
          </table>
        </div>

  • Uploading php files to server

    Hi. I would have thought my hosting provider could have
    helped me with this, but they could not. I have three different
    sites that i manage that are hosted at Interland. On one of these
    sites, when i upload a php file, and then try to bring this page up
    in a browser, it returns....
    Internal Server Error
    The server encountered an internal error or misconfiguration
    and was unable to complete your request.
    Please contact the server administrator,
    [email protected] and inform them of the time the error
    occurred, and anything you might have done that may have caused the
    error.
    More information about this error may be available in the
    server error log.
    Apache/1.3.26 Server at www.nd-solutions.com Port 80
    I have no problem on the other two sites hosted with them. I
    tried explaining the problem and asked what may be the difference
    with this site and why i cannot successfully upload these files.
    They seem to think it's on my end, but i have no idea what i can do
    to remedy this problem. I don't see any difference in the way i
    have this site set-up, as compared to the way i have the two others
    set-up. Any suggestions or ideas on why this could be happening to
    me?
    This all started when i tried setting up some forms using
    formmail.php on this site and i was not able to get it work, and it
    works perfectly on one of the other sites that i host with them. I
    dread calling them again -- there are such communication issues,
    coupled with bad phone connections. Any thoughts on what i might
    do, besides switching hosts -- not an option right now?

    Thanks a lot.  Here's what I did thus far:
    1) Added this upload form to an html snippet
    <form enctype="multipart/form-data" action="uploader.php" method="POST">
    <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
    Choose a file to upload: <input name="uploadedfile" type="file" /><br />
    <input type="submit" value="Upload File" />
    </form>
    Do I need to create a "MAX_FILE SIZE" .php here? What's this called or how do I go about this? php.ini?
    2) Now I inserted this <iframe> below in the same snippet
    <iframe src="uploader.php" width="x" height="x"></iframe>2)
    3) I also created a folder called 'uploads' for this code below to save to it
    $target_path = "uploads/";
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
    What should this file be named?
    Should this code be added to that same file too?
    $target_path = "uploads/";
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
        echo "The file ".  basename( $_FILES['uploadedfile']['name']).
        " has been uploaded!";
    } else{
        echo "There was an error uploading the file, try again!";
    4)  Do I need an .htacces file or php.ini?
    5) Do all these files go into the site's root directory?

  • When using a php contact form, the form won't work correctly.

    This is the code that I'm using in the html snippet. The form displays correctly, but when you click submit it trys to go to www.my web site.com//Order_Page/send_form_email. Notice the double / above? How do i make it not do two / but only one?
      First Name *
      Last Name *
      Email Address *
      Telephone Number
      Comments *

    The post method needs to reference the formmail.php script you uploaded to the server.
    Here's some examples and instructions for a simple form...
    http://www.iwebformusicians.com/iweb-snippets/form.html

  • Formmail action & cgi scripts

    I have 2 forms I built in CS3 that have to be processed in a
    secure manner. I followed the advice I found online and from my
    webhost (network solutions) and downloaded Visual Form Mail Pro. I
    uploaded the cgi script files to the cgi-bin on the server and
    setup the permissions. When I click the submit button on the form,
    I get an Internal Server Error message. I think the problem is the
    action field on the properties panel. I cannot find anything that
    will tell me what the action should be. I cannot use the mailto
    action, the forms are for secure medical information to be
    forwarded to a dr's office. One other issue with how the form needs
    to be processed to email, is my client wants the email sent to his
    gmail account, how do I configure that?
    the url for the form I tried to configure is
    https://www.stluciegi.com/contact/patientcontact.html

    ou can use PHP on this hosting?
    I'd suggest using the phpformmail script.
    here's my stock cut 'n paste on what to set to what, and why
    1)go to
    http://http://developerkarma.com/projects
    -->phpformmail
    download it.
    extract the ZIP file.
    More detailed instructions are in the docs folder. These
    shortcut
    instructions are for version 1.07 of the phpformmail script.
    2) open formmail.php in dreamweaver
    Make the following changes (in code view, turn line numbers
    on)
    2a)
    line 4,
    define('CHECK_REFERER', true);
    change to:
    define('CHECK_REFERER', false);
    reason: too many people use a firewall or Norton security to
    restrict this.
    2b)
    Line 43
    $referers = array('www.example.com', 'example.com');
    change to the domain name of your web site.
    reason: this probably isn't needed since we just turned the
    referrer
    checking off. but change it anyway.
    2c)  *this is to hard-code the recipient address into
    the php
    file, where it is totally invisible *
    Line 46
    $recipient_array = array();
    change to:
    $recipient_array = array('me' =>
    '[email protected]');
    **of course, replace [email protected]  with
    the email address
    you want to receive the form data. Also note the single quote
    marks.
    reason: this sets the email address the form results will be
    sent to.
    You can also make a list of possible recipient alias values-
    see the readme
    in the docs folder.
    2d) give the script a default "From" address to use.
    Go to line 41
    Change:
    define('FROM', null);
    to:
    define('FROM', 'Example Name <[email protected]>');
    substituting your name and email address.
    3) now do a File-->Save As and save this file to within
    this Local Site
    folder. save it as anythingyouwant.php
    4) in dw's File Panel, find anythingyouwant.php and upload it
    to the remote
    site.
    5) Now open your form html file in dreamweaver,
    5a)click the mouse into the form area, and select the
    <form> tag on the
    lower left margin of the design window.
    In the Property Inspector, it should now show the properties
    of the <form>
    tag. In the Property Inspector, to the right of the ACTION
    line, click the
    folder icon and browse to and select the anythingyouwant.php
    file
    you've saved to within this site.
    5b) now click within the form area and go to dw
    menu-->Insert-->Form
    Objects-->Hidden Field
    This inserts a hidden form field.
    In the property inspector, change the NAME/ID of this field
    to: recipient
    And the VALUE of this field to: me
    the code should look like:
    <input name="recipient" type="hidden" id="recipient"
    value="me">
    This tells the script to use the "me" recipient_alias value
    as the email
    address to send the form to.
    5c: Do you have a form field to collect the user's email
    address?
    If yes, if this field is named exactly "email" then the
    script will use the
    user's email as the reply to in the outgoing email
    6) Save and upload the form page.
    Try the form from the website.
    Optional:
    1-make a new page for a thank you for submitting message.
    In the form, insert another hidden field.
    Name: redirect
    Value:  the full absolute
    http:// address to the new thank you page.
    If you don't set a redirect value- the form script will build
    a "thank you,
    here is what you submitted" page. If you want to use that
    dynamic page-
    upload the .css file that it uses.
    2- If you have a field in the form to collect the visitor's
    email address,
    IF you name this field  in the form exactly  
     email   then the visitor's
    email address will be the Reply To address in the outgoing
    email.
    There are 30 or so other optional form fields to control the
    form- see the
    readme in the docs folder. One of those optional control
    fields is
    verification.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Mail-form from dB Masters + reCaptcha - Things wont work the way i want.

    I used a mail-form from dB Masters because someone here gave me the tip.
    And its great! But it uses a simplefied Captcha script.
    I tryd to change the code myself and got to this: http://www.wientjesvoegwerk.nl/PHP/form.php
    If you try to send mail it wont work.....
    form.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>Email Form</title>
    </head>
    <body>
    <center>
    <form id="form" method="post" action="../formmailer.php" enctype="multipart/form-data">
    <input type="hidden" name="action" value="verify">
    <table cellpadding="4">
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Uw naam:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <input type="text" name="Naam" value=""/>
    </td></tr>
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Email:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <input type="text" name="Email" value="" />
    </td></tr>
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Telefoonnummer:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <input type="text" name="Telefoonnummer" value="" />
    </td></tr>
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Onderwerp:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <select name="Onderwerp">
        <option value="0">Algemene Informatie</option>
        <option value="1">Offerte</option>
        <option value="2">Overige</option>
        </select>
    </td></tr>
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Bericht:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <textarea name="Bericht" rows="7" cols="40"></textarea>
    </td></tr>
    <tr><td align=right>CAPTCHA TXT</td>
    <td align="left">
    <form method="post" action="verify.php">
       <?php
         require_once('recaptchalib.php');
         $publickey = "I hide the key on this forum dont know if its ok to show";
         echo recaptcha_get_html($publickey);
       ?>
    </form>
    </td>
    </tr>
    <tr><td></td><td align="left">
    <input type="submit" name="submit" value="Submit" />
    <input type="reset" name="Reset" value="Clear Form" />
    <input type="hidden" name="config" value="0" />
    <input type="hidden" name="nospam" value="" />
    </td></tr>
    </table>
    <div style="height:1px; display: none; visibility: hidden;">
    <input type="text" name="email">
    </div>
    </form>
    </center>
    </body>
    </html>
    formmailer.php
    <?php
    // dB Masters' PHP FormM@iler, Copyright (c) 2007 dB Masters Multimedia
    // http://www.dbmasters.net/
    // FormMailer comes with ABSOLUTELY NO WARRANTY
    // Licensed under the AGPL
    // See license.txt and readme.txt for details
    // General Variables
         $check_referrer="no";
         $referring_domains="www.wientjesvoegwerk.nl";
    // options to use if hidden field "config" has a value of 0
    // recipient info
         $charset[0]="UTF-8";
         $tomail[0]="[email protected]";
         $cc_tomail[0]="";
         $bcc_tomail[0]="";
    // Mail contents config
         $subject[0]="Onderwerp van de Email";
         $reply_to_field[0]="Email";
         $reply_to_name[0]="Naam";
         $required_fields[0]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
         $required_email_fields[0]="Email";
         $attachment_fields[0]="";
         $return_ip[0]="yes";
         $mail_intro[0]="Er is een bericht gestuurd vanuit Wientjesvoegwerk.nl:";
         $mail_fields[0]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
         $mail_type[0]="text";
         $mail_priority[0]="1";
         $allow_html[0]="no";
    // Send back to sender config
         $send_copy[0]="yes";
         $copy_format[0]="vert_table";
         $copy_fields[0]="Naam,Onderwerp,Bericht";
         $copy_attachment_fields[0]="";
         $copy_subject[0]="Kopie van uw bericht naar Wientjesvoegwerk.nl";
         $copy_intro[0]="Dank u voor uw bericht!<br />Om veiligheidsredenen is uw email adres en telefoonnummer niet in deze mail te zien.<br /> Het volgende is verstuurd;";
         $copy_from[0]="[email protected]";
         $copy_tomail_field[0]="Email";
    // Result options
         $header[0]="";
         $footer[0]="";
         $error_page[0]="";
         $thanks_page[0]="";
    // Default Error and Success Page Variables
         $error_page_title[0]="Errors:";
         $error_page_text[0]="Ga a.u.b. terug naar de vorige pagina om alle benodigde velden in te vullen.";
         $thanks_page_title[0]="Bericht verzonden.";
         $thanks_page_text[0]="Dank u voor uw bericht!";
    // Antispam Options
         $empty_field[0]="nospam";
         $character_scan[0]="Bericht,Naam,Email,Telefoonnummer,Onderwerp";
         $time_delay[0]="2";
         $captcha_codes[0]="9C2449,EEADC8,77A585,D72838";
         $max_urls[0]="2";
         $max_url_fields[0]="Bericht";
         $flag_spam[0]="";
    // options to use if hidden field "config" has a value of 1
    // recipient info
         $charset[1]="";
         $tomail[1]="";
         $cc_tomail[1]="";
         $bcc_tomail[1]="";
    // Mail contents config
         $subject[1]="";
         $reply_to_field[1]="";
         $reply_to_name[1]="";
         $required_fields[1]="";
         $required_email_fields[1]="";
         $attachment_fields[1]="";
         $return_ip[1]="";
         $mail_intro[1]="";
         $mail_fields[1]="";
         $mail_type[1]="";
         $mail_priority[1]="";
         $allow_html[1]="";
    // Send back to sender config
         $send_copy[1]="";
         $copy_format[1]="";
         $copy_fields[1]="";
         $copy_attachment_fields[1]="";
         $copy_subject[1]="";
         $copy_intro[1]="";
         $copy_from[1]="";
         $copy_tomail_field[1]="";
    // Result options
         $header[1]="";
         $footer[1]="";
         $error_page[1]="";
         $thanks_page[1]="";
    // Default Error and Success Page Variables
         $error_page_title[1]="";
         $error_page_text[1]="";
         $thanks_page_title[1]="";
         $thanks_page_text[1]="";
    // Antispam Options
         $empty_field[1]="bait";
         $character_scan[1]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
         $time_delay[1]="";
         $captcha_codes[1]="";
         $max_urls[1]="";
         $max_url_fields[1]="";
         $flag_spam[1]="";
    // Don't muck around past this line unless you know what you are doing //
    ob_start();
    $config=$_POST["config"];
    $debug=0;
    $debug_text="";
    // fix for Windows email server security
    ini_set("sendmail_from",$tomail[$config]);
    // email validation regular expression
    $regex = "^[-a-z0-9!#$%&\'*+/=?^_`{|}~]+(\.[-a-z0-9!#$%&\'*+/=?^_`{|}~]+)*@(([a-z0-9]([-a-z0-9]*[a-z0-9]+)?){1,63}\.)+([a-z]([-a-z0-9]*[a-z0-9]+)?){2,63}$";
    $header_injection_regex = "(\r|\n)";
    if($header[$config]!="")
         include($header[$config]);
    if($_POST["submit"] || $_POST["Submit"] || $_POST["submit_x"] || $_POST["Submit_x"])
    // begin global functions //
    // get visitor IP
         function getIP()
              if(getenv(HTTP_X_FORWARDED_FOR))
                   $user_ip=getenv("HTTP_X_FORWARDED_FOR");
              else
                   $user_ip=getenv("REMOTE_ADDR");
              return $user_ip;
    // get value of given key
         function parseArray($key)
              $arrayvalue=$_POST[$key];
              $count=1;
              extract($array_value);
              foreach($array_value as $part_value)
                   if($count > 1){$value.=", ";}
                   $value.=$part_value;
                   $count=$count+1;
              return $value;
    // stripslashes and autolink url's
         function parseValue($value)
              $value=preg_replace("/(http:\/\/+.[^\s]+)/i",'<a href="\\1">\\1</a>', $value);
              return $value;
    // html header if used
         function htmlHeader()
              $htmlHeader="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$charset[$config]."\"></head>\n<body>\n<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"600\">\n";
              return $htmlHeader;
    // html footer if used
         function htmlFooter()
              $htmlFooter="</table>\n</body>\n</html>\n";
              return $htmlFooter;
    // build verticle table format
         function buildVertTable($fields, $intro, $to, $send_ip)
              $message=htmlHeader();
              if($intro != "")
                   $message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"2\">".$intro."</td>\n</tr>\n";
              $fields_check=preg_split('/,/',$fields);
              $run=sizeof($fields_check);
              for($i=0;$i<$run;$i++)
                   $cur_key=$fields_check[$i];
                   $curvalue=$_POST[$cur_key];
                   if(is_array($cur_value))
                        $curvalue=parseArray($cur_key);
                   $curvalue=parseValue($cur_value);
                   if($allow_html[$config]=="no")
                        $curvalue=htmlspecialchars(nl2br($cur_value));
                   else
                        $curvalue=nl2br($cur_value);
                   $message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$cur_value."</td>\n</tr>\n";
              if($send_ip=="yes" && $to=="recipient")
                   $user_ip=getIP();
                   $message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$user_ip."</td>\n</tr>\n";
              $message.=htmlFooter();
              return $message;
    // build horizontal table format
         function buildHorzTable($fields, $intro, $to, $send_ip)
              $message=htmlHeader();
              $fields_check=preg_split('/,/',$fields);
              $run=sizeof($fields_check);
              if($intro != "")
                   $message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"".$run."\">".$intro."</td>\n</tr>\n";
              $message.="<tr>\n";
              for($i=0;$i<$run;$i++)
                   $cur_key=$fields_check[$i];
                   $message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n";
              if($send_ip=="yes" && $to=="recipient")
                   $message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n";
              $message.="</tr>\n";
              $message.="<tr>\n";
              for($i=0;$i<$run;$i++)
                   $cur_key=$fields_check[$i];
                   $curvalue=$_POST[$cur_key];
                   if(is_array($cur_value))
                        $curvalue=parseArray($cur_key);
                   $curvalue=parseValue($cur_value);
                   if($allow_html[$config]=="no")
                        $curvalue=htmlspecialchars(nl2br($cur_value));
                   else
                        $curvalue=nl2br($cur_value);
                   $message.="<td align=\"left\" valign=\"top\">".$cur_value."</td>\n";
              $message.="</tr>\n";
              $message.="<tr>\n";
              if($send_ip=="yes" && $to=="recipient")
                   $user_ip=getIP();
                   $message.="<td align=\"left\" valign=\"top\">".$user_ip."</td>\n";
              $message.="</tr>\n";
              $message.=htmlFooter();
              return $message;
    // build plain text format
         function buildTextTable($fields, $intro, $to, $send_ip)
              $message="";
              if($intro != "")
                   $message.=$intro."\n\n";
              $fields_check=preg_split('/,/',$fields);
              $run=sizeof($fields_check);
              for($i=0;$i<$run;$i++)
                   $cur_key=$fields_check[$i];
                   $curvalue=$_POST[$cur_key];
                   if(is_array($cur_value))
                        $curvalue=parseArray($cur_key);
                   $curvalue=parseValue($cur_value);
                   if($allow_html[$config]=="no")
                        $curvalue=htmlspecialchars($cur_value);
                   else
                        $curvalue=$cur_value;
                   $message.="".$cur_key.": ".$cur_value."\n";
              if($send_ip=="yes" && $to=="recipient")
                   $user_ip=getIP();
                   $message.="Sender IP: ".$user_ip."\n";
              return $message;
    // get the proper build fonction
         function buildTable($format, $fields, $intro, $to, $send_ip)
              if($format=="vert_table")
                   $message=buildVertTable($fields, $intro, $to, $send_ip);
              else if($format=="horz_table")
                   $message=buildHorzTable($fields, $intro, $to, $send_ip);
              else
                   $message=buildTextTable($fields, $intro, $to, $send_ip);
              return $message;
    // referrer checking security option
         function checkReferer()
              if($check_referrer=="yes")
                   $ref_check=preg_split('/,/',$referring_domains);
                   $ref_run=sizeof($ref_check);
                   $referer=$_SERVER['HTTP_REFERER'];
                   $domain_chk="no";
                   for($i=0;$i<$ref_run;$i++)
                        $cur_domain=$ref_check[$i];
                        if(stristr($referer,$cur_domain)){$domain_chk="yes";}
              else
                   $domain_chk="yes";
              return $domain_chk;
    // checking required fields and email fields
         function checkFields($text_fields, $email_fields, $regex)
               $error_message="";
              if($debug==1)
                   $error_message.="<li>text_fields: ".$text_fields."<br />email_fields: ".$email_fields."<br />reply_to_field: ".$reply_to_field."<br />reply_to_name: ".reply_to_name."</li>";
              if($text_fields != "")
                   $req_check=preg_split('/,/',$text_fields);
                   $req_run=sizeof($req_check);
                   for($i=0;$i<$req_run;$i++)
                        $cur_field_name=$req_check[$i];
                        $cur_field=$_POST[$cur_field_name];
                        if($cur_field=="")
                             $error_message.="<li>You are missing the <b>".$req_check[$i]."</b> field</li>\n";
              if($email_fields != "")
                   $email_check=preg_split('/,/',$email_fields);
                   $email_run=sizeof($email_check);
                   for($i=0;$i<$email_run;$i++)
                        $cur_email_name=$email_check[$i];
                        $cur_email=$_POST[$cur_email_name];
                        if($cur_email=="" || !eregi($regex, $cur_email))
                             $error_message.="<li>You are missing the <b>".$email_check[$i]."</b> field or it is not a valid email address.</li>\n";
              return $error_message;
    // attachment function
         function getAttachments($attachment_fields, $message, $content_type, $border)
              $att_message="This is a multi-part message in MIME format.\r\n";
              $att_message.="--{$border}\r\n";
              $att_message.=$content_type."\r\n";
              $att_message.="Content-Transfer-Encoding: 7bit\r\n\r\n";
              $att_message.=$message."\r\n\r\n";
              $att_check=preg_split('/,/',$attachment_fields);
              $att_run=sizeof($att_check);
              for($i=0;$i<$att_run;$i++)
                   $fileatt=$_FILES[$att_check[$i]]['tmp_name'];
                   $fileatt_name=$_FILES[$att_check[$i]]['name'];
                   $fileatt_type=$_FILES[$att_check[$i]]['type'];
                   if (is_uploaded_file($fileatt))
                        $file=fopen($fileatt,'rb');
                        $data=fread($file,filesize($fileatt));
                        fclose($file);
                        $data=chunk_split(base64_encode($data));
                        $att_message.="--{$border}\n";
                        $att_message.="Content-Type: {$fileatt_type}; name=\"{$fileatt_name}\"\r\n";
                        $att_message.="Content-Disposition: attachment; filename=\"{$fileatt_name}\"\r\n";
                        $att_message.="Content-Transfer-Encoding: base64\r\n\r\n".$data."\r\n\r\n";
              $att_message.="--{$border}--\n";
              return $att_message;
    // function to set content type
         function contentType($charset, $format)
              if($format=="vert_table")
                   $content_type="Content-type: text/html; charset=".$charset."\r\n";
              else if($format=="horz_table")
                   $content_type="Content-type: text/html; charset=".$charset."\r\n";
              else
                   $content_type="Content-type: text/plain; charset=".$charset."\r\n";
              return $content_type;
    // end global functions //
    // begin procedural scripting //
         // anti-spam empty field check
         if($_POST[$empty_field[$config]] != "")
              $empty_message = "<li>This submission failed and was flagged as spam.</li>\n";
         // anti-spam character scan check
         if(strlen($character_scan[$config]) > 0)
              $spam_message="";
              $field_check=preg_split('/,/',$character_scan[$config]);
              $field_run=sizeof($field_check);
              for($i=0;$i<$field_run;$i++)
                   $cur_field_name=$field_check[$i];
                   $cur_field=$_POST[$cur_field_name];
                   if(preg_match("/<(.|\n)+?>/", $cur_field) || preg_match("/\[(.|\n)+?\]/", $cur_field))
                        $spam_message.="<li>This message contains disallowed characters.</li>\n";
         // anti-spam time delay check
         if((strlen($time_delay[$config]) > 0 && strlen($_POST["time"]) > 0) || (strlen($time_delay[$config]) > 0 && (strlen($_POST["time"]) == 0 || !$_POST["time"])))
              if((time() - $_POST["time"]) < $time_delay[$config])
                   $time_message = "<li>This has been stopped by the timer, and is likely spam.</li>\n";
         // anti-spam CAPTCHA check
         if(strlen($captcha_codes[$config]) > 0)
              $captcha_check=preg_split('/,/',$captcha_codes[$config]);
              if(strtolower($_POST["captcha_entry"]) != strtolower($captcha_check[$_POST["captcha_code"]]))
                   $captcha_message = "<li>CAPTCHA test did not match.</li>\n";
         // anti-spam max URL check
         if(strlen($max_url_fields[$config]) > 0)
              $max_url_message="";
              $field_check=preg_split('/,/',$max_url_fields[$config]);
              $field_run=sizeof($field_check);
              for($i=0;$i<$field_run;$i++)
                   $cur_field_name=$field_check[$i];
                   $cur_field=$_POST[$cur_field_name];
                   preg_match_all("/http:/", $cur_field, $matches);
                   if(count($matches[0]) > $max_urls[$config])
                        $max_url_message.="<li>This message contains too many URL's.</li>\n";
         // set anti-spam flagging option
         if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) == 0)
              $set_flag = 2;
         else if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) > 0)
              $set_flag = 1;
         else
              $set_flag = 0;
         // header injection check
            $security_filter="";
         if(strlen($_POST[$reply_to_field[$config]]) > 0)
              if(eregi($header_injection_regex,$_POST[$reply_to_field[$config]]))
                   $security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
              else
                   $reply_to_field_checked=$_POST[$reply_to_field[$config]];
         if(strlen($_POST[$reply_to_name[$config]]) > 0)
              if(eregi($header_injection_regex,$_POST[$reply_to_name[$config]]))
                   $security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
              else
                   $reply_to_name_checked=$_POST[$reply_to_name[$config]];
         // check domain referrer and continue
         $domain_chk=checkReferer();
         if($domain_chk=="yes")
              $error_message=checkFields($required_fields[$config], $required_email_fields[$config], $regex);
              if(strlen($error_message) < 1 && strlen($security_filter) < 1 && $set_flag < 2)
                   // build appropriate message format for recipient
                   $content_type=contentType($charset[$config], $mail_type[$config]);
                   $message=buildTable($mail_type[$config], $mail_fields[$config], $mail_intro[$config], "recipient", $return_ip[$config]);
                   // build header data for recipient message
                   //$extra="From: ".$_POST[$reply_to_field[$config]]."\r\n";
                   $extra="From: ".$reply_to_name_checked." <".$reply_to_field_checked.">\r\n";
                   if($cc_tomail[$config]!="")
                        $extra.="Cc: ".$cc_tomail[$config]."\r\n";
                   if($bcc_tomail[$config]!="")
                        $extra.="Bcc: ".$bcc_tomail[$config]."\r\n";
                   if($mail_priority[$config]!="")
                        $extra.="X-Priority: ".$mail_priority[$config]."\r\n";
                   // get attachments if necessary
                   if($attachment_fields[$config]!="")
                        $semi_rand=md5(time());
                        $border="==Multipart_Boundary_x{$semi_rand}x";
                        $extra.="MIME-Version: 1.0\r\n";
                        $extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
                        $message=getAttachments($attachment_fields[$config], $message, $content_type, $border);
                   else
                        $extra.="MIME-Version: 1.0\r\n".$content_type;
                   // send recipient email
                   if($debug==1)
                        if($set_flag == 1)
                             $debug_text.="<p><b>Mail would have sent flagged for spam if not in debug mode.</b></p>";
                        else
                             $debug_text.="<p><b>Mail would have sent if not in debug mode.</b></p>";
                   else if($debug==0)
                        if($set_flag == 1)
                             $subject = $flag_spam[$config]." ".$subject[$config];
                        else
                             $subject = $subject[$config];
                        mail("".$tomail[$config]."", "".stripslashes($subject)."", "".stripslashes($message)."", "".$extra."");
                   // autoresponse email if necessary
                   if($send_copy[$config]=="yes")
                        // build appropriate message format for autoresponse
                        $content_type=contentType($charset[$config], $copy_format[$config]);
                        $message=buildTable($copy_format[$config], $copy_fields[$config], $copy_intro[$config], "autoresponder", $return_ip[$config]);
                        // build header data for autoresponse
                        $copy_tomail=$_POST[$copy_tomail_field[$config]];
                        $copy_extra="From: ".$copy_from[$config]."\r\n";
                        // get autoresponse  attachments if necessary
                        if($copy_attachment_fields[$config]!="")
                             $semi_rand=md5(time());
                             $border="==Multipart_Boundary_x{$semi_rand}x";
                             $copy_extra.="MIME-Version: 1.0\r\n";
                             $copy_extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
                             $message=getAttachments($copy_attachment_fields[$config], $message, $content_type, $border);
                        else
                             $copy_extra.="MIME-Version: 1.0\r\n".$content_type;
                        // send autoresponse email
                        if($debug==1)
                             if($set_flag == 1)
                                  $debug_text.="<p><b>Autoresponder would have sent flagged for spam if not in debug mode.</b></p>";
                             else
                                  $debug_text.="<p><b>Autoresponder would have sent if not in debug mode.</b></p>";
                        else if($debug==0)
                             $send_copy = 1;
                             if($copy_tomail=="" || !eregi($regex,$copy_tomail))
                                  $send_copy = 0;
                             if($send_copy == 1)
                                  if($set_flag == 1)
                                       $copy_subject = $flag_spam[$config]." ".$copy_subject[$config];
                                  else
                                       $copy_subject = $copy_subject[$config];
                                  mail("$copy_tomail", "".$copy_subject."", "$message", "$copy_extra");
                   // showing thanks pages from a successful submission
                   if($thanks_page[$config]=="")
                        echo "<h3>".$thanks_page_title[$config]."</h3>\n";
                        echo "<p>".$thanks_page_text[$config]."</p>\n";
                        if(strlen($debug_text) > 0)
                             echo "<p><b><i>".$debug_text."</i></b></p>\n";
                   else
                        header("Location: ".$thanks_page[$config]);
              else
                   // entering error page options from missing required fields
                   if($error_page[$config]=="")
                        echo "<h3>".$error_page_title[$config]."</h3>\n";
                        echo "<ul>\n";
                        echo $security_filter.$empty_message.$error_message.$spam_message.$time_message.$captcha_message.$max_url_message;
                        echo "</ul>\n";
                        echo "<p>".$error_page_text[$config]."</p>\n";
                   else
                        header("Location: ".$error_page[$config]);
         else
              echo "<h3>".$error_page_title[$config]."</h3>\n";
              // message if unauthorized domain trigger from referer checking option
              echo "<p>Sorry, mailing request came from an unauthorized domain.</p>\n";
    // end procedural scripting //
    else
         echo "<h3>Error</h3>";
         echo "<p>No form data has been sent to the script</p>\n";
    if($footer[$config]!="")
         include($footer[$config]);
    ob_end_flush();
    ?>
    verify.php
    <?php
    require_once('recaptchalib.php');
    $privatekey = "i hide this on the forum";
    $resp = recaptcha_check_answer ($privatekey,
                                   $_SERVER["REMOTE_ADDR"],
                                   $_POST["recaptcha_challenge_field"],
                                   $_POST["recaptcha_response_field"]);
    if (!$resp->is_valid) {
       // What happens when the CAPTCHA was entered incorrectly
       die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
            "(reCAPTCHA said: " . $resp->error . ")");
    } else {
       // Your code here to handle a successful verification
    ?>
    We have a saying in the Netherlands; "Not being abled to see the tree's trough the forest"
    Well i dont see it anymore...
    I managed to get it in the code but it doesnt work.
    I hope someone can help me out!

    @Nancy O.
    Thanks for your support i appreciate it that you helped me out a many times.
    However i have read all of the topics you posted.
    I know in the mail form i can disable the "sort of Captcha". I wanted to disable it and insert reCaptcha instead.
    I will re-make the form because like you said (and i already figured it out myself) ;
    "b) Don't modify forms until you get a very basic form working on your server."
    And youre right, im taking too much work at once.
    @CowboyInAZ
    Im a hobbyist that learns really really fast.
    Before March 23 i never used CSS, Javascript and XHTML. And never combined them all together with PHP. (never ever created a php based file from scratch)
    The reason why i use other persons code is because i learn faster with examples, and because i dont need to reinvent the wheel if someone already invented it. The only thing i do with it is learn the workings, customise it and at last, rewrite the code when i understand it.
    If you look at my current site: http://www.wientjesvoegwerk.nl/
    You will notice that the site is validated by W3C with no errors and warnings.
    I think it was Nancy O. that gave me the link to the validator. Thats how i discovered the service.
    You need to know that in 1 day (from 63 errors and 12 warnings) i removed all errors. And i didnt knew much about it, and why errors happend while the site looks fine.
    So im just curious how things work and thats why i "steal" codes and adjust them to learn myself.
    I also want a education like you spoke of, but im interested in a different media.
    I want to be abled to create my dream project wich involves new ways for game studios to earn money.
    This is just a simple start, im also taking tutorials in C#, C++.

  • Text Fields Not Showing in Design or Live View

    Hello Everyone,
    I have run into a problem trying to create a simple contact form through Dreamweaver CS6.  I have two text fields for Name & Email, and 1 text area for Comments.  The issue I am running into is that the text fields are not showing in Design or Live view.  I have set-up all variables required for the server for the form to work... but that should not have any effect on the text field showing...  I tried uploading my contact page with the same result of no text fields showing...
    What is really laughable is that the "text area" I placed in my form for Comments shows up in Design & Live view just fine.  I am thinking that I am missing something, but just do not know what exactly.  The form is styled through CSS.
    Here is the form code:
         <div id="CRDForm">
           <form action="http://www.sweetformimi.com/formmail/formmail.php" method="post" enctype="application/x-www-form-urlencoded" name="contact" target="_self" id="contact">
        <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
        <input type="hidden" name="recipients" value="[email protected]" />
        <input type="hidden" name="subject" value="Contact Form" />
             <label><p>Your Full Name
               <input name="Name" type="text" id="Name" size="40" /></p>
             </label>
             <label><p>Email
             <input name="email" type="text" accesskey="2" tabindex="2" title="Email" value="Email"></p>
             </label>
             <label>Comments<br />
             <textarea name="comments" cols="40" rows="10" accesskey="3" tabindex="3" title="Comments"></textarea>
             </label>
             <input name="submit" type="submit" accesskey="4" tabindex="4" title="submit" value="submit">
           </form>
        </div>
    Are there other variables I should be thinking about in the rest of my site?  I am using a fluid grid layout.  I have CSS for desktop, tablet, and phone devices.  I also have a primary CSS file that imports all three.  The sites structure was done by using <header>, <article>, <footer>, and of course <div> tags. 
    Has anyone ever experienced the "text fields" not showing up before? Is it a simple fix as reinstalling Dreamweaver CS6?  Finally, another thing I should mention is that I did have a previous version of Dreamweaver on my comp, which was CS3.  I did not uninstall that before installing the newer version.  I assumed (and I could be wrong here) that it would automatically replace the older version.
    I apoligize for it being long winded, but I am looking for some help on this issue...
    Thank You

    Hey thank you osgood for the reply!
    When I look at code for long hours it sort of blurs together, and I miss things... I think that happens to the most of us
    Ya I found what was blocking my text fields in my desktop.css
    I primarily work through code view, and currently working on quite a few projects kind of makes your eyes miss the small errors.
    Thanks again!

  • How do I create an email list sign up form for my iWeb website?

    Well that's the question - how do I create an email list sign up form for my iWeb website?
    Could someone tell me what's the simplest way using iWeb to create an interactive option
    for users to enter their email address and the info be forwarded to me so I can add to an
    email list?
    It would be great if, since I'm using a Mac computer & iWeb, there was a way to have the
    submitted emails automatically added to a group in my Mac Addressbook.
    I got this MacBook Pro in Sept 2010 so I believe that's iWeb '08 I'm using.
    Anyway I'm thinking there should be a way to do this with some system involving an HTMK
    Widget and an email account.
    By the way this is for hosting through a 'real server', not MobileMe (which I plan to get later
    when I can afford it).
    Any help or suggestions would be appreciated.
    Mark

    Website forms require some code in a snippet and a formmail.php script on the server to process the form and send the info to the required email address. You can do all this when you switch to a "real" server.
    In the meantime you can use a form  or marketing service or, better still, an application like MailShoot which generates the form, handles the database and sends out the bulk emails.
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Forms with Dreamweaver CS4?

    Hi All,
    Does anyone have a link or tutoral on how to create a form in Dreamweaver CS4. I need to make a "Request a Catalog" Form.
    I especially might need the most help on figuring out on how to receive the info thru my email.
    many thanks,
    Alex

    HTML forms don't do anything without an Action.  You can use Mailto: but this is just asking for Spam and limits the usefulness of your form.  Your best solution is to use a form processing script with spam controls built in.
    Ask your host if they offer any form-to-email processing scripts you can use... or which flavor script you can use on your server (PHP, ASP, ASP.net, ColdFusion, etc...)
    Form Services and Script generators
    http://wufoo.com/
    http://www.bebosoft.com/products/formstogo/overview/
    FormMailer.PHP script
    http://dbmasters.net/index.php?id=4
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • HELP With Dreamweaver Contact Page

    I what I want to do is once the user fills in the form like the attachment.  The user clicks the submit button and then a "contact us" webpage opens in the browser and their name and stuff populates a regular contact us webpage made like this http://dreamweaverspot.com/adobe-dreamweaver-tutorial-contact-forms/ is what I am following.  In the attachment have the user enter their name (John Doe) and click a done button and have John Doe appear on the Dreamweaver form.  Then use something like formmail.php so when the user clicks send email their info is already entered and all they have to do is click the button
    PDF File Here

    I don't use GoDaddy but the comments below the tutorial did seem to indicate that there were problems with email.
    GoDaddy is a very good registrar. I, personally would not recommend them for hosting, having on numerous occasions seen clients and potential clients with websites that did not load, loaded slowly, seemed to not work and so on. If they're limiting what you can do with php (or any server-side code) without making a clear alternative for you, then they're too limited to use for a website. And that comment is not aimed at GoDaddy, it's aimed at any web hosting provider that limits their clients in some way that makes websites not work.
    If you know ASP or ColdFusion a web host that does not provide that kind of support is not for you.
    I would mention that you can create a complete form without doing any programming for a web host that supports php on the formmailmaker.com website. You can also find good php code in all sorts of places that will make just about anything you need.
    And if you're still stuck, you can hire someone to do that kind of work.

  • Mail Form Question

    Hi Folks,
    I'm VERY new to Dreamweaver, have just created a Mail Form in
    PHP and have absolutely no idea what to do with it now. It's one of
    those typical forms with To:/Email:/Message: I know this is a
    painfully basic question but I can't seem to find the answer in
    books, training videos, my hosting provider, etc. I know I need a
    URL to "point" the file to on the server but my internet host had
    no idea what I was talking about.
    If anyone could help it would be greatly appreciated!!
    Thanks, Cynthia

    you can use php on this hosting?
    I'd suggest using the phpformmail script.
    here's my stock cut 'n paste on what to set to what, and why
    1)go to
    http://boaddrink.com
    -->phpformmail
    download it.
    extract the ZIP file.
    More detailed instructions are in the docs folder
    2) open formmail.php in dreamweaver
    Make the following changes (in code view, turn line numbers
    on)
    2a)
    line 4,
    define('CHECK_REFERER', true);
    change to:
    define('CHECK_REFERER', false);
    reason: too many people use a firewall or Norton security to
    restrict this.
    2b)
    Line 43
    $referers = array('www.example.com', 'example.com');
    change to the domain name of your web site.
    reason: this probably isn't needed since we just turned the
    referrer
    checking off. but change it anyway.
    2c)  *this is to hard-code the recipient address into
    the php
    file, where it is totally invisible *
    Line 46
    $recipient_array = array();
    change to:
    $recipient_array = array('me' =>
    '[email protected]');
    **of course, replace [email protected]  with
    the email address
    you want to receive the form data. Also note the single quote
    marks.
    reason: this sets the email address the form results will be
    sent to.
    You can also make a list of possible recipient alias values-
    see the readme
    in the docs folder.
    2d) give the script a default "From" address to use.
    Go to line 41
    Change:
    define('FROM', null);
    to:
    define('FROM', 'Example Name <[email protected]>');
    substituting your name and email address.
    3) now do a File-->Save As and save this file to within
    this Local Site
    folder. save it as anythingyouwant.php
    4) in dw's File Panel, find anythingyouwant.php and upload it
    to the remote
    site.
    5) Now open your form html file in dreamweaver,
    5a)click the mouse into the form area, and select the
    <form> tag on the
    lower left margin of the design window.
    In the Property Inspector, it should now show the properties
    of the <form>
    tag. In the Property Inspector, to the right of the ACTION
    line, click the
    folder icon and browse to and select the anythingyouwant.php
    file
    you've saved to within this site.
    5b) now click within the form area and go to dw
    menu-->Insert-->Form
    Objects-->Hidden Field
    This inserts a hidden form field.
    In the property inspector, change the NAME/ID of this field
    to: recipient
    And the VALUE of this field to: me
    the code should look like:
    <input name="recipient" type="hidden" id="recipient"
    value="me">
    This tells the script to use the "me" recipient_alias value
    as the email
    address to send the form to.
    5c: Do you have a form field to collect the user's email
    address?
    If yes, if this field is named exactly "email" then the
    script will use the
    user's email as the reply to in the outgoing email
    6) Save and upload the form page.
    Try the form from the website.
    Optional:
    1-make a new page for a thank you for submitting message.
    In the form, insert another hidden field.
    Name: redirect
    Value:  the full absolute
    http:// address to the new thank you page.
    If you don't set a redirect value- the form script will build
    a "thank you,
    here is what you submitted" page. If you want to use that
    dynamic page-
    upload the .css file that it uses.
    2- If you have a field in the form to collect the visitor's
    email address,
    IF you name this field  in the form exactly  
     email   then the visitor's
    email address will be the Reply To address in the outgoing
    email.
    There are 30 or so other optional form fields to control the
    form- see the
    readme in the docs folder. One of those optional control
    fields is
    verification.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Form Mail - server scripts

    Howdy all,
    I use DW 2004MX. If this topic has been addressed before, I'm
    sorry. I am trying to make a very simple form mail work on my
    website; name, address, phone # and send. I know for a fact there
    are two types of form scripts on my server, and both are activated.
    One is a CGI (gdform.cgi), and the other is a PHP (gdform.php). My
    server is Godaddy if that matters. I have read many messages about
    form mail, but cannot find out how to MAKE IT ALL WORK. I have been
    looking for a step-by-step answer, but no luck so far. BTW, I am a
    newbie. The manual I have is "aftermarket", and is near useless for
    the form mail stuff. The web address is www.azaleatrail.com
    Any help would be greatly appreciated,
    Thanks,
    MonaLisaWest

    > One is a CGI (gdform.cgi), and the other is a PHP
    > (gdform.php). My server is Godaddy if that matters.
    my suggestion from trying to sort out questions from others
    hosted with go
    daddy- don't bother with either of those scripts.
    I assume that you can use php files within your site?
    If yes- i suggest this script:
    http://boaddrink.com
    -->phpformmail
    the instructions are in the zipped folder.
    short list of instructions i suggest (use your own info of
    course)
    http://groups-beta.google.com/group/macromedia.dreamweaver/search?q=alan+php
    formmail+edit+recipient&start=0&scoring=d&
    1)go to
    http://boaddrink.com
    -->phpformmail
    download it.
    http://www.boaddrink.com/projects/files/phpformmail/phpformmail_class...
    .2.zip
    extract the ZIP file.
    2) open formmail.php in dreamweaver
    Make the following changes (in code view, turn line numbers
    on)
    2a)
    line 4,
    define('CHECK_REFERER', true);
    change to:
    define('CHECK_REFERER', false);
    reason: too many people use a firewall or Norton security to
    restrict this.
    2b)
    Line 43
    $referers = array('www.example.com', 'example.com');
    change to the url address of your web site.
    reason: this probably isn't needed since we just turned the
    referrer
    checking off. but change it anyway.
    2c) *********this is the hard-coding of the recipient address
    into the php
    file, where it is totally invisble**********
    Line 46
    $recipient_array = array();
    change to:
    $recipient_array = array('me' =>
    '[email protected]);
    **put YOUR email address in to replace
    [email protected]
    reason: this sets the email address the form results will be
    sent to.
    3) now do a File-->Save As and save this file to within
    this Local Site
    folder.
    4) in dw's File Panel, find formmail.php and upload it to the
    remote site.
    5) Now open your form html file in dreamweaver,
    5a)click the mouse into the form area, and select the
    <form> tag on the
    lower left margin of the design window.
    In the Property Inspectory, it should now show the properties
    of the <form>
    tag. In the Property Inspector, to the right of the ACTION
    line, click the
    folder icon and browse to and select the copy of the
    formmail.php file
    you've saved to within this site.
    5b) now go to dw menu-->Insert-->Form
    Objects-->Hidden Field
    This inserts a hidden form field.
    In the property inspector, change the NAME of this field to:
     recipient
    And the VALUE of this field to:  me
    the code should look like:
    <input name="recipient" type="hidden" id="recipient"
    value="me">
    6) Save and upload the form page.
    Try the form from the website.
    Optional:
    make a new page for a thank you for submitting message.
    In the form, insert another hidden field.
    Name:  redirect
    Value:  the full absolute
    http:// address to the new thank you page.
    There is other information about that script in the Docs
    folder.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How to send an email confirmation after a form is submitted

    Hi,
    I would like to send an email confirmation to the person who fills out a form besides the html page confirmation that they receive.  Is there a way to write in some script to pull their email out of the form and send this confirmation to them?  The form is here: http://tinyurl.com/klej69
    The form action is the webformmailer.php on the godaddy site.
    Thanks so much for your help.
    Cheers,
    Janell

    Contact Tech Support and ask them if you can modify their script or run a 3rd party formmailer script that will do what you want.  I don't think they allow you to use other scripts for security reasons but it won't hurt to ask.
    If you decide to change hosts,  Formmailer.php from DB Masters will do exactly what you need.
    http://dbmasters.net/index.php?id=4
    Best of luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

Maybe you are looking for

  • How to find country of user who is accessing website

    I want to find the know the country of my user whether they are from USA or INDIA or UK etc.

  • Audio synch off when exporting to HDTV 720p 29.97 high quality

    we are  exporting 720p native footage to the MPEG2 -> HDTV 720p 29.97 High  Quality  preset... the audio is off by six or so frames on export, which  is noticable on talking heads. find out if anyone has found a fix for  this in CS5? Windows 7 12 gig

  • Example BPEL Process calling/invoking a web service.

    Hi, 1.Could someone please help me with this...Need some guidance regards calling a web service from a simple bpel process. Is there any example or tutorial which would help us to design a simple bpel process which takes in some input values from the

  • BPM Admin center automatic startup

    Hi is there any way that weblogic startup automatically the bpm admin center so I only write the url of the bpm workspace??? I understand there's a way to do it automatically How do I make the "install as service" in unix thanks Edited by: Diego Guil

  • Delete existing RecordStore and then open a newer one with same name

    Hey All, I'm working in J2Me for Nokia S40 DP2.0 SDK 1.0. I want to delete my existing RecordStore (i. e; Products) and then open a new RecordStore as same name(Products) But There is an Exception thrown that RecordStore is Open; my deletion process