Dreamweaver Forms - formmail.pl
I have created a form in Dreamweaver with the following Code: When the customer hits submit he gets a confirmation with the information they have inputed but it does not go the email address, [email protected]. Can anyone tell me where the problem is?? I've done this before and it works, but not this particular one. Thanks Pam Dale from NC.
<th scope="row"> <form action="http://www.safetync.org/cgi-sys/formmail.pl" method="post" enctype="plain/text" name="congress2010" target="_blank" class="style105" id="congress2010" onsubmit="MM_validateForm('Price','','R','City','','R','State','','R','Telephone','','R', 'email','','RisEmail');return document.MM_returnValue">
<input type="hidden" name="recipient" value="[email protected]" />
<input type="hidden" name="username" value="matrix3" />
<input type="hidden" name="subject" value="2010 Safety Congress Registration Form" />
<input type="hidden" name="print_config" value="email,subject" />
<input type="hidden" name="print_blank_fields" value="1" />
<input type="hidden" name="title" value="Form Results" />
<input type="hidden" name="return_link_url" value="http://www.safetync.org/congressattendeeonlineregistrationform.htm" />
<input type="hidden" name="return_link_title" value="Return to Home Page" />
<input type="hidden" name="bgcolor" value="ffffff" />
<input type="hidden" name="text_color" value="000000" />
<table width="100%" align="center">
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="center">
<hr align="center" width="100%" size="1px" noshade="noshade" color="#000000" />
</div></th>
</tr>
<tr>
<th height="141" colspan="2" class="bodytext" scope="row"><div align="left">
<label>
<img src="graphics/congressbackpackonly.jpg" width="125" height="141" border="2" style="float:right" /></label>
<p>
<input type="radio" name="FreeBackpack" id="radio" value="Yes, Send me the free backpack for registering by July 1, 2010" />
Yes, Send me the free Backpack<br />
(Register by September 3, 2010)</p>
<h4> <strong>Banquet Guest</strong></h4>
<p><span class="style148">
<label></label>
</span>
<label> <span class="style148">
<input type="radio" name="BanquetGuestYes" value="Yes, I have a banquet guest" id="BanquetGuest_0" />
</span><span class="bodytext"> $50 Banquet Guest</span></label>
<br />
<span class="bodytext">
<label></label>
(Check if you plan to bring a guest)</span></p>
<p><span class="style148">
<label></label>
Banquet Guest Name:
<label>
<input name="BanquetGuestName" type="text" id="BanquetGuestName" size="50" maxlength="50" />
<br />
(If applicable) </label>
</span><br />
</p>
</div> </th>
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="left" class="style148"></div></th>
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="left">
<label></label>
<h4><span><input name="WednesdaySessions" type="radio" id="radio2" value="Yes, I plan to attend Wednesday at no extra charge" />
</span> Yes, I plan to attend Wednesday at no extra charge</h4>
</div></th><td width="1%">
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="left" class="style148">
<span class="style161">You can choose 1 of the following:</span>
<ul>
<li class="bodytext"> OSHA 10 Hour for Construction - 9am - 5pm</li>
<li class="bodytext"> NFPA 70E Arc Flash - 12:30pm-4:30pm</li>
<li class="bodytext"> CPR Training - 12:30pm-4:30pm</li>
</ul>
</div></th>
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="left" class="style148">
<p class="bodytext">Class I plan to attend: </p>
<p>
<label>
<input name="WednesdayClass" type="text" id="WednesdayClass" size="75" maxlength="60" />
</label>
</p>
</div></th>
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="left">
<p> </p>
</div></th>
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="left">
<label></label>
<h4> <strong>
<input type="radio" name="HazardRecognition" id="radio3" value="Yes, I plan to attend Hazard Recognition on Thursday, November 18 from 8:30am-Noon" />
Yes, I plan to attend Hazard Recognition<br />
on Thursday, 8:30am-Noon</strong></h4>
</div></th>
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="left">
<p> </p>
</div></th>
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="left">
<h4>
<label>
<input type="radio" name="DDC4Hour" id="radio4" value="Yes, I plan to attend DDC 4 Hour on Friday, 8am-Noon" />
</label>
<span class="bodytext"><strong>Yes, I plan to attend DDC 4 Hour on Friday, 8am-Noon</strong></span></h4>
</div></th>
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="left">
<p> </p>
</div></th>
</tr>
<tr>
<th colspan="2" class="bodytext" scope="row"><div align="center">
<h3 align="left">You will be invoiced - Send Payment to:</h3>
<p align="left">Safety and Health Council of North Carolina<br />
Congress Registration<br />
2709 Water Ridge Parkway, Suite 120<br />
Charlotte, NC 28217</p>
<h3 align="left">Call Angie at 704.644.4225 to pay by credit card<br />
<br />
Thanks for your registration!</h3>
<p align="left">Don't forget your hotel reservation at Embassy Suites Hotel<br />
Call 704.527.8400 to reserve your room by October 18th!</p>
<p align="left"> </p>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"> <div align="left" class="style138">
<div align="left">
<p>Are You a Member?</p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<select name="Membership" id="Membership">
<option selected="selected">Please Select</option>
<option value="No, I am not a member $495">No ($495)</option>
<option value="Yes, I am a member $295">Yes ($295)</option>
<option value="Please send me membership information">Please send me membership information</option>
</select>
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style138">
<div align="left">
<p>P.O. # If Required or Authorized Name </p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="PurchaseOrderNo" type="text" id="PurchaseOrderNo" size="50" maxlength="100" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style138">
<div align="left">
<p>Full Name of Attendee: </p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143" id="Name">
<div align="left">
<p>
<input name="AttendeeName" type="text" id="AttendeeName" onblur="MM_validateForm('attendeename','','R','companyname','','R','address','','R','city ','','R','state','','R','zipcode','','R','telephone','','R');return document.MM_returnValue" size="50" maxlength="100" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style138">Preferred Name:</div></th>
<th height="50" class="bodytext" scope="row"><div align="left">
<label>
<input name="PreferredName1" type="text" id="PreferredName1" size="50" maxlength="100" />
</label>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Job Title: </p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="JobTitle1" type="text" id="JobTitle1" size="50" maxlength="100" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Second Attendee's Name: </p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="SecondAttendee" type="text" id="SecondAttendee" size="50" maxlength="100" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style138">Preferred Name 2nd attendee:</div></th>
<th height="50" class="bodytext" scope="row"><div align="left">
<label>
<input name="PreferredName2ndAttendee" type="text" id="PreferredName2ndAttendee" size="50" maxlength="100" />
</label>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Job Title Second Attendee: </p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="JobTitleSecondAttendee" type="text" id="JobTitleSecondAttendee" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Contact Name: </p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="ContactName" type="text" id="ContactName" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Company Name: </p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="CompanyName" type="text" id="CompanyName" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Address (Mailing):</p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="MailingAddress" type="text" id="MailingAddress" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Address Line 2: </p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="AddressLine2" type="text" id="AddressLine2" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>City:</p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="City" type="text" id="City" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>State:</p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="State" type="text" id="State" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Zip Code:</p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="ZipCode" type="text" id="ZipCode" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Telephone:</p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="Telephone" type="text" id="Telephone" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Fax:</p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="Fax" type="text" id="Fax" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>E-mail Address 1: </p>
</div>
</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<input name="Email1" type="text" id="Email1" size="50" />
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th height="50" class="bodytext" scope="row"><div align="left" class="style138">E-mail Address 2:</div></th>
<th height="50" class="bodytext" scope="row"><div align="left" id="emailaddress2">
<label>
<input name="Email2" type="text" id="Email2" size="50" />
</label>
</div></th>
</tr>
<tr class="lineheight150">
<th class="bodytext" scope="row"><div align="left" class="style143">
<div align="left" class="style141">
<p>Comments:</p>
</div>
</div></th>
<th class="bodytext" scope="row"><div align="left" class="style143">
<div align="left">
<p>
<textarea name="Comments" cols="40" rows="10" id="Comments"></textarea>
</p>
</div>
</div></th>
</tr>
<tr class="lineheight150">
<th colspan="2" class="bodytext" scope="row"><div align="left">
<p class="style134"><span class="style139"><span class="style139"></span></span></p>
</div></th>
</tr>
<tr class="lineheight150">
<th colspan="2" class="bodytext" scope="row"><div align="left" class="style138">
<p><strong>
<input type="submit" name="Submit" value="Submit" onclick="clear" />
<input name="Reset" type="reset" id="Reset" value="Reset" />
</strong></p>
</div></th>
</tr>
</table>
</form>
Hi
The problem will be in your formmail.pl script, ensure the email address is entered correctly in this.
PZ
www.pziecina.com
Similar Messages
-
Dreamweaver Form Won't Submit- Says Error page cannot be displayed
My dreamweaver form won't submit because it says there is an error. Am I doing something wrong? I don't know much about forms and how they submit but I heard that in order for their to be a confirmation page I have to create a php page? Here's my code. Thanks!
<!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=iso-8859-1" />
<title>Rental and Availability Information</title>
<style type="text/css">
<!--
@import url("CSS Styles/ThankYou.css");
.style18 {font-size: 16px; font-weight: bold; }
.style21 {color: #FFFFFF}
.style42 {
font-size: 16px;
color: #000000;
font-family: Garamond;
a:link {
color: #000000;
.style43 {
font-family: Garamond;
color: #FFFFFF;
font-weight: bold;
.style44 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: large;
-->
</style>
<link href="CSS Styles/ActivBorder.css" rel="stylesheet" type="text/css" />
<link href="CSS Styles/border.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style50 {
font-family: "Goudy Old Style";
font-weight: bold;
font-size: 24px;
color: #FFFFFF;
.style57 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style58 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; }
-->
</style>
</head>
<body>
<form id="form2" name="form2" method="post" action="inquiryreceipt.html">
<table width="556" border="0" align="center" cellspacing="0" bgcolor="#003366" class="ImageBorder">
<tr>
<td colspan="3" valign="top"><div align="center" class="style50"><u>Rental and Availability Information</u></div></td>
</tr>
<tr>
<td width="189"><div align="right" class="style18 style57"><span class="style21">Name:</span></div></td>
<td colspan="2"><input name="name" type="text" id="name" size="50" maxlength="100" /></td>
</tr>
<tr>
<td><div align="right" class="style18 style57"><span class="style21">Property of Interest: </span></div></td>
<td colspan="2"><label>
<select name="property" size="1" id="property">
<option>Butte Creek</option>
<option>Casa De Ladrillo</option>
<option>Collins Island</option>
<option>The Crosby Estate</option>
<option>Kailua Beach</option>
<option>Keefer Ranch</option>
<option>Koko Head</option>
<option>Rancho Mirage</option>
<option>San Diego Luxury High Rise</option>
<option>Santiago Canyon</option>
<option>South Lake Tahoe</option>
</select>
</label></td>
</tr>
<tr>
<td><div align="right" class="style18 style57"><span class="style21">Dates:</span></div></td>
<td width="83" align="right" bgcolor="#003366"><div align="right" class="style58">
<div align="right"><span class="style21">Arrival:</span></div>
</div></td>
<td width="270" align="left" bgcolor="#003366" class="FormBorder"><strong>
<select name="smonth" id="smonth">
<option>Month</option>
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="Semptember">September</option>
<option value="Octover">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select>
<select name="select" id="select">
<option>Day</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</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>
<strong><strong>
<select name="select2" id="select2">
<option>Year</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2003">2008</option>
</select>
</strong></strong> </strong>
<div align="left"></div> <div align="left"></div></td>
</tr>
<tr>
<td><span class="style57"></span></td>
<td bgcolor="#003366"><div align="right" class="style58">
<div align="right"><span class="style21">Departure:</span></div>
</div></td>
<td align="left" valign="middle" bgcolor="#003366" class="FormBorder"><strong>
<select name="smonth" id="smonth">
<option>Month</option>
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="Semptember">September</option>
<option value="Octover">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select>
<select name="sday" id="sday">
<option>Day</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</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>
<strong> <strong><strong>
<select name="syear" id="syear">
<option>Year</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2003">2008</option>
</select>
</strong></strong></strong> </strong></td>
</tr>
<tr>
<td><div align="right" class="style18 style57"><span class="style21">Email:</span></div></td>
<td colspan="2"><input name="email" type="text" id="email" size="50" maxlength="50" /></td>
</tr>
<tr>
<td><div align="right" class="style18 style57"><span class="style21">Phone: </span></div></td>
<td colspan="2"><input name="phone" type="text" id="phone" size="30" maxlength="30" /></td>
</tr>
<tr>
<td height="204" valign="top" bgcolor="#003366"><div align="right" class="style18 style57"><span class="style21">Additional Info: </span></div></td>
<td colspan="2" bgcolor="#003366"><label>
<textarea name="info" cols="40" rows="10" id="info"></textarea>
</label></td>
</tr>
<tr bgcolor="#660000" class="FormBorder">
<td height="33" valign="middle" bgcolor="#003366"><label for="Submit"></label>
<label for="label3"></label></td>
<td colspan="2" align="center" valign="middle" bgcolor="#003366"><div align="left">
<input type="reset" name="Reset" value="Clear" id="Submit" />
<input type="submit" name="Submit" value="Submit" id="label3" />
</div></td>
</tr>
<tr bgcolor="#660000" class="FormBorder">
<td height="33" valign="middle" bgcolor="#003366"><div align="left" class="style43"><span class="style29 style44"><strong>«</strong></span> <a href="Index.html" class="style60"><span class="style61 style21"><u>HOME</u></span></a></div></td>
<td colspan="2" align="center" valign="middle" bgcolor="#003366"> </td>
</tr>
</table>
<div align="center"><span class="style42">©<strong><a href="Index.html">TheBestSpots.com</a> Phone: (800) 761-9819 Fax: (949) 851-0450 <a href="mailto:[email protected]"><br />
[email protected]</a></strong></span> </div>
</form>
</body>
</html>I believe my it guys have php on their server. When I look on the internet
to try and use the form to test it, I get the error:
The website cannot display the page
HTTP 500
Most likely causes:
The website is under maintenance.
The website has a programming error.
What you can try:
Refresh the page.
Go back to the previous page.
Here's one php code I have linked to one of my documents:
<!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=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.ThankYou {
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center center;
border: thick dotted #660033;
font-family: "Times New Roman", Times, serif;
font-size: 24px;
font-weight: bold;
color: #660033;
font-style: italic;
background-color: #FFFFFF;
.style3 {
font-size: 18px;
font-style: italic;
font-weight: bold;
font-family: Georgia, "Times New Roman", Times, serif;
color: #000066;
.style4 {font-size: 30px}
a:link {
color: #000066;
a:visited {
color: #000000;
a:hover {
color: #000000;
a:active {
color: #000000;
-->
</style>
</head>
<body>
<div align="center">
<table width="780" height="150" border="1" class="ThankYou">
<tr>
<td valign="middle"><div align="center">
<p class="style4">Thank You For Submitting Your Comments!</p>
<p>-The Best Spots<br />
Luxury Vacation Rentals</p>
</div></td>
</tr>
</table>
<p align="left"><img src="BOPIcon copy.gif" alt="BirdOfParadise" width="36" height="36" /><span class="style3"><a href="Index.html">TheBestSpots.com </a></span></p>
</div>
<p>
<?php
$txtToAddr = '[email protected]' ;
$txtSubj = 'Guest Comment From '. $_POST['fname'] . ' ' . $_POST['lname'] . ' email '. $_POST['email'] . ' Property' . $_POST['property'] ;
$txtFromAddr = $_POST['email'];
$txtBody = $startdate = $_POST['smonth'] . $_POST['sday'] . $_POST['syear'] . ' ' . $enddate = $_POST['emonth'] . $_POST['eday'] . $_POST['eyear'] . ' ' . $_POST['comments'] ;
$headers = 'From: '. $txtFromAddr . "\r\n" .
'Reply-To: ' . $txtFromAddr . "\r\n" .
'X-Mailer: PHP/' . phpversion();
// echo " Thank you for you request. You will be contacted within 1 business day.";
mail( "$txtToAddr", "$txtSubj", "$txtBody", "$headers");
?>
</p>
<p> </p>
<p> </p>
</body>
</html>
And here's the other php code I have linked to the other:
<?php
$FM_VERS = "8.05"; // script version
/* ex:set ts=4 sw=4 et:
* FormMail PHP script from Tectite.com. This script requires PHP 4 or later.
* Copyright (c) 2001-2008 Root Software and Open Concepts Pty Ltd
* (ABN 93 003 733 499), Melbourne, Australia.
* This script is free for all use as described in the "Copying and Use" and
* "Warranty and Disclaimer" sections below.
* Visit us at http://www.tectite.com/ for updates and more information.
*** If you use Tectite FormMail, please support its development and other
*** freeware products by putting the following link on your website:
*** Visit www.tectite.com for free <a href="http://www.tectite.com/">form processing script</a>.
* Author: Russell Robinson, 2nd October 2001
* Last Modified: RR 14:07 Wed 15 August 2007
* QVCS Version: $Revision: 1.4 $
* Read This First
* ~~~~~~~~~~~~~~~
* This script is very well documented and quite large! It looks daunting,
* but really isn't.
* If you have experience with PHP or other scripting languages,
* here's what you *need* to read:
* - Configuration (TARGET_EMAIL & DEF_ALERT)
* - Creating Forms
* That's it! (Alternatively, just read the Quick Start and/or
* Quicker Start section below).
* Full configuration documentation is here:
* http://www.tectite.com/fmdoc/index.php
* Purpose:
* ~~~~~~~~
* To accept information from an HTML form via HTTP and mail it to recipients.
* What does this PHP script do?
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* On your web site, you may have one or more HTML forms that accept
* information from people visiting your website. Your aim is for your
* website to email that information to you and/or add it to a database.
* FormMail performs those functions.
* Quick Start
* ~~~~~~~~~~~
* 1. Edit this file and set TARGET_EMAIL for your requirements (near
* line 235 in this file - replace "yourhost\.com" with your mail server's
* name). We also strongly recommend you set DEF_ALERT (the next
* configuration below TARGET_EMAIL).
* 2. Install this file as formmail.php (or other name ending in .php)
* on your web server.
* 3. Create an HTML form and:
* - specify a hidden field called "recipients" with the email address
* of the person to receive the form's results.
* - in the your form tag set the action attribute to
* the formmail.php you uploaded to your web server
* Once you have FormMail working, you may be interested in some advanced
* usage and features. We have HOW-TO guides at www.tectite.com which
* describe many of the advanced processing you can do with FormMail.
* http://www.tectite.com/fmhowto/guides.php
* Quicker Start
* ~~~~~~~~~~~~~
* Use the FormMail Configuration Wizard here:
* http://www.tectite.com/wizards/fmconf.php
* By answering a few questions you'll get a configured FormMail and
* a sample HTML form ready to upload and use on your server.
* Features
* ~~~~~~~~
* For a list of features go to: http://www.tectite.com/formmailpage.php
* Security
* ~~~~~~~~
* Security is the primary concern in accepting data from your website
* visitors.
* Tectite FormMail has several security features designed into it. Note,
* however, it requires configuration for your particular web site.
* Configuration
* ~~~~~~~~~~~~~
* To configure this script, go to the section titled "CONFIGURATION"
* (after reading the legal stuff below).
* There is only one mandatory setting: TARGET_EMAIL
* and one strongly recommended setting: DEF_ALERT
* Full configuration information is available here:
* http://www.tectite.com/fmdoc/index.php
* Creating Forms
* ~~~~~~~~~~~~~~
* Go to this URL to learn how to write HTML forms for use with
* Tectite FormMail: http://www.tectite.com/fmdoc/creating_forms.php
* Copying and Use
* ~~~~~~~~~~~~~~~
* Tectite FormMail is provided free of charge and may be freely distributed
* and used provided that you:
* 1. keep this header, including copyright and comments,
* in place and unmodified; and,
* 2. do not charge a fee for distributing it, without an agreement
* in writing with Root Software allowing you to do so; and,
* 3. if you modify FormMail before distributing it, you clearly
* identify:
* a) who you are
* b) how to contact you
* c) what changes you have made
* d) why you have made those changes.
* Warranty and Disclaimer
* ~~~~~~~~~~~~~~~~~~~~~~~
* Tectite FormMail is provided free-of-charge and with ABSOLUTELY NO WARRANTY.
* It has not been verified for use in critical applications, including,
* but not limited to, medicine, defense, aircraft, space exploration,
* or any other potentially dangerous activity.
* By using Tectite FormMail you agree to indemnify Root Software and
* Open Concepts Pty Ltd, their agents, employees, directors and
* associated companies and businesses from any liability whatsoever.
* We still care
* ~~~~~~~~~~~~~
* If you find a bug or fault in FormMail, please report it to us.
* We will respond to your report and make endeavours to rectify any
* faults you've detected as soon as possible.
* To contact us please register on our forums at:
* http://www.tectite.com/vbforums/
* or view our contact information:
* http://www.tectite.com/contacts.php
* Version History
* ~~~~~~~~~~~~~~~
* Near the top of this file, you'll find its version. The version
* line looks like this:
* $FM_VERS = "N.MM"; /* script version ...
* The version history used to be located within this file. However,
* starting with Version 8.00 we've moved it...
* You can read the complete version history of FormMail on our
* main website here:
* http://www.tectite.com/fmdoc/version_history.php
// Capture the current date and time, for various purposes.
$lNow = time();
set_magic_quotes_runtime(0); // disable this silly setting (usually not enabled)
ini_set('track_errors',1); // enable $php_errormsg
$aAlertInfo = array();
$aPHPVERSION = array();
$sLangID = ""; // the language ID
$aMessages = array(); // all FormMail messages in the appropriate
// language
$bUseOldVars = IsOldVersion($aPHPVERSION);
// seed the random number generate if not version 4.2.0 or later
if (!IsPHPAtLeast("4.2.0"))
mt_srand(time());
// we set references to the appropriate arrays to handle PHP version differences
// Session vars are selected after we start the session.
if ($bUseOldVars)
$aServerVars = &$HTTP_SERVER_VARS;
$aGetVars = &$HTTP_GET_VARS;
$aFormVars = &$HTTP_POST_VARS;
$aFileVars = &$HTTP_POST_FILES;
$aEnvVars = &$HTTP_ENV_VARS;
else
$aServerVars = &$_SERVER;
$aGetVars = &$_GET;
$aFormVars = &$_POST;
$aFileVars = &$_FILES;
$aEnvVars = &$_ENV;
$bIsGetMethod = false;
// If the form submission was using the GET method, switch to the
// GET vars instead of the POST vars
if (isset($aServerVars["REQUEST_METHOD"]) && $aServerVars["REQUEST_METHOD"] === "GET")
$bIsGetMethod = true;
if ($bUseOldVars)
$aFormVars = &$HTTP_GET_VARS;
else
$aFormVars = &$_GET;
if (!isset($REAL_DOCUMENT_ROOT))
SetRealDocumentRoot();
if (isset($aServerVars['SERVER_PORT']))
$SCHEME = ($aServerVars['SERVER_PORT'] == 80) ? "http://" : "https://";
else
$SCHEME = "";
if (isset($aServerVars['SERVER_NAME']))
$SERVER = $aServerVars['SERVER_NAME'];
else
$SERVER = "";
/* CONFIGURATION (do not alter this line in any way!!!) */
* This is the *only* place where you need to modify things to use formmail.php
* on your particular system. This section finishes at "END OF CONFIGURATION".
* Help for all settings can be found on our website:
* http://www.tectite.com/fmdoc/index.php
* Also, above each setting is a direct URL to the help information for the
* setting.
/* Help: http://www.tectite.com/fmdoc/email_name.php */
define("EMAIL_NAME","^[-a-z0-9.]+"); // the '^' is an important security feature!
/* Help: http://www.tectite.com/fmdoc/target_email.php */
$TARGET_EMAIL = array(EMAIL_NAME."@thebestspots\.com$");
/* Help: http://www.tectite.com/fmdoc/def_alert.php */
define("DEF_ALERT","[email protected]");
/* Help: http://www.tectite.com/fmdoc/set_real_document_root.php */
$SET_REAL_DOCUMENT_ROOT = ""; // overrides the value set by SetRealDocumentRoot function
// override $REAL_DOCUMENT_ROOT from the $SET_REAL_DOCUMENT_ROOT value (if any)
// Do not alter the following code (next 3 lines)!
if (isset($SET_REAL_DOCUMENT_ROOT) && $SET_REAL_DOCUMENT_ROOT !== "")
$REAL_DOCUMENT_ROOT = $SET_REAL_DOCUMENT_ROOT;
/* Help: http://www.tectite.com/fmdoc/config_check.php */
$CONFIG_CHECK = array("TARGET_EMAIL");
/* Help: http://www.tectite.com/fmdoc/at_mangle.php */
define("AT_MANGLE","5VLNXQL");
/* Help: http://www.tectite.com/fmdoc/target_urls.php */
$TARGET_URLS = array(); // default; no URLs allowed
/* Help: http://www.tectite.com/fmdoc/head_crlf.php */
define("HEAD_CRLF","\r\n");
/* Help: http://www.tectite.com/fmdoc/body_lf.php */
define("BODY_LF","\r\n"); // the new default: use this for CR+LF
//define("BODY_LF","\n"); // the old default: just LF
/* Help: http://www.tectite.com/fmdoc/from_user.php */
$FROM_USER = ""; // the default - setting not used
/* Help: http://www.tectite.com/fmdoc/sendmail_f_option.php */
define("SENDMAIL_F_OPTION",false);
define("SENDMAIL_F_OPTION_LINE",__LINE__-1); // don't modify this line!
/* Help: http://www.tectite.com/fmdoc/fixed_sender.php */
$FIXED_SENDER = "";
/* Help: http://www.tectite.com/fmdoc/set_sender_from_email.php */
define("SET_SENDER_FROM_EMAIL",false);
/* Help: http://www.tectite.com/fmdoc/ini_set_from.php */
define("INI_SET_FROM",false);
/* Help: http://www.tectite.com/fmdoc/logdir.php */
$LOGDIR = ""; // directory for log files; empty string to
// disallow log files
/* Help: http://www.tectite.com/fmdoc/autorespondlog.php */
$AUTORESPONDLOG = ""; // file name in $LOGDIR for the auto responder
// log; empty string for no auto responder log
/* Help: http://www.tectite.com/fmdoc/csv_file_settings.php */
$CSVDIR = ""; // directory for csv files; empty string to
// disallow csv files
$CSVSEP = ","; // comma separator between fields (columns)
$CSVINTSEP = ";"; // semicolon is the separator for fields (columns)
// with multiple values (checkboxes, etc.)
$CSVQUOTE = '"'; // all fields in the CSV are quoted with this character;
// default is double quote. You can change it to
// single quote or leave it empty for no quotes.
//$CSVQUOTE = "'"; // use this if you want single quotes
$CSVOPEN = ""; // set to "b" to force line terminations to be
// kept as $CSVLINE setting below, regardless of
// operating system. Keep as empty string and
// leave $CSVLINE unchanged, to get text file
// terminations for your server's operating system.
// (Line feed on UNIX, carriage-return line feed on Windows).
$CSVLINE = "\n"; // line termination for CSV files. The default is
// a single line feed, which may be modified for your
// server's operating system. If you want to change
// this value, you *must* set $CSVOPEN = "b".
/* Help: http://www.tectite.com/fmdoc/templatedir.php */
$TEMPLATEDIR = ""; // directory for template files; empty string
// if you don't have any templates
/* Help: http://www.tectite.com/fmdoc/templateurl.php */
$TEMPLATEURL = ""; // default; no template URL
/* Help: http://www.tectite.com/fmdoc/multiformdir.php */
$MULTIFORMDIR = ""; // directory for multi-form template files; empty string
// if you're not using multi-forms
/* Help: http://www.tectite.com/fmdoc/multiformurl.php */
$MULTIFORMURL = ""; // default; no multi-forms templates URL
/* Help: http://www.tectite.com/fmdoc/authentication_settings.php */
$AUTHENTICATE = "";
//$AUTHENTICATE = "Basic cnVzc2VsbHI6dGVzdA=="; // example
$AUTH_USER = "";
$AUTH_PW = "";
/* Help: http://www.tectite.com/fmdoc/form_ini_file.php */
$FORM_INI_FILE = "";
/* Help: http://www.tectite.com/fmdoc/moduledir.php */
$MODULEDIR = ".";
/* Help: http://www.tectite.com/fmdoc/fmcompute.php */
$FMCOMPUTE = "fmcompute.php";
/* Help: http://www.tectite.com/fmdoc/fmgeoip.php */
$FMGEOIP = "fmgeoip.php";
/* Help: http://www.tectite.com/fmdoc/advanced_templates.php */
define("ADVANCED_TEMPLATES",false); // set to true for advanced templates
/* Help: http://www.tectite.com/fmdoc/limited_import.php */
define("LIMITED_IMPORT",true); // set to true if your database cannot
// handle escaped quotes or newlines within
// imported data. Microsoft Access is one
// example.
/* Help: http://www.tectite.com/fmdoc/valid_env.php */
$VALID_ENV = array('HTTP_REFERER','REMOTE_HOST','REMOTE_ADDR','REMOTE_USER',
'HTTP_USER_AGENT');
/* Help: http://www.tectite.com/fmdoc/fileuploads.php */
define("FILEUPLOADS",false); // set to true to allow file attachments
/* Help: http://www.tectite.com/fmdoc/max_file_upload_size.php */
define("MAX_FILE_UPLOAD_SIZE",0); // default of 0 means that other software
// controls the maximum file upload size
// (FormMail doesn't test the file size)
/* Help: http://www.tectite.com/fmdoc/file_repository.php */
$FILE_REPOSITORY = "";
/* Help: http://www.tectite.com/fmdoc/file_mode.php */
define("FILE_MODE",0664); // always precede with 0 to specify octal!
/* Help: http://www.tectite.com/fmdoc/file_overwrite.php */
define("FILE_OVERWRITE",true);
/* Help: http://www.tectite.com/fmdoc/next_num_file.php */
$NEXT_NUM_FILE = "";
/* Help: http://www.tectite.com/fmdoc/put_data_in_url.php */
define("PUT_DATA_IN_URL",true); // set to true to place data in the URL
// for bad_url redirects
/* Help: http://www.tectite.com/fmdoc/db_see_input.php */
define("DB_SEE_INPUT",false); // set to true to just see the input values
/* Help: http://www.tectite.com/fmdoc/db_see_ini.php */
define("DB_SEE_INI",false); // set to true to just see the ini file
/* Help: http://www.tectite.com/fmdoc/maxstring.php */
define("MAXSTRING",1024); // maximum string length for a value
/* Help: http://www.tectite.com/fmdoc/bshowmesgnumbers.php */
$bShowMesgNumbers = false;
/* Help: http://www.tectite.com/fmdoc/filters.php */
/* Note for Tectite personnel: the upgrade Wizard will merge new values
* but be careful of $var usage and quoting in new entries.
$FILTERS = array("encode"=>"$REAL_DOCUMENT_ROOT/cgi-bin/fmencoder -kpubkey.txt",
"null"=>"null",
"csv"=>"csv");
/* Help: http://www.tectite.com/fmdoc/socket_filters.php */
$SOCKET_FILTERS = array(
"httpencode"=>array("site"=>"YourSiteHere",
"port"=>80,
"path"=>"/cgi-bin/fmencoder",
"params"=>array(array("name"=>"key",
"file"=>"$REAL_DOCUMENT_ROOT/cgi-bin/pubkey.txt"))),
"sslencode"=>array("site"=>"ssl://YourSecureSiteHere",
"port"=>443,
"path"=>"/cgi-bin/fmencoder",
"params"=>array(array("name"=>"key",
"file"=>"$REAL_DOCUMENT_ROOT/cgi-bin/pubkey.txt"))),
/* Help: http://www.tectite.com/fmdoc/filter_attribs.php */
$FILTER_ATTRIBS = array("encode"=>"Strips,MIME=application/vnd.fmencoded,Encrypts",
"httpencode"=>"Strips,MIME=application/vnd.fmencoded,Encrypts",
"sslencode"=>"Strips,MIME=application/vnd.fmencoded,Encrypts",
"csv"=>"Strips,MIME=text/csv",);
/* Help: http://www.tectite.com/fmdoc/check_for_new_version.php */
define("CHECK_FOR_NEW_VERSION",true);
define("CHECK_DAYS",30);
/* Help: http://www.tectite.com/fmdoc/scratch_pad.php */
$SCRATCH_PAD = "";
/* Help: http://www.tectite.com/fmdoc/cleanup_time.php */
$CLEANUP_TIME = 60; // cleanup time in minutes
/* Help: http://www.tectite.com/fmdoc/cleanup_chance.php */
$CLEANUP_CHANCE = 20; // percentage probability that cleanup will be performed
/* Help: http://www.tectite.com/fmdoc/pear_settings.php */
$PEAR_SMTP_HOST = "";
$PEAR_SMTP_PORT = 25;
$PEAR_SMTP_USER = "";
$PEAR_SMTP_PWD = "";
/* Help: http://www.tectite.com/fmdoc/alert_on_user_error.php */
define("ALERT_ON_USER_ERROR",true);
/* Help: http://www.tectite.com/fmdoc/enable_attack_detection.php */
define("ENABLE_ATTACK_DETECTION",true);
/* Help: http://www.tectite.com/fmdoc/attack_detection_url.php */
define("ATTACK_DETECTION_URL","");
/* Help: http://www.tectite.com/fmdoc/alert_on_attack_detection.php */
define("ALERT_ON_ATTACK_DETECTION",false);
/* Help: http://www.tectite.com/fmdoc/attack_detection_mime.php */
define("ATTACK_DETECTION_MIME",true);
/* Help: http://www.tectite.com/fmdoc/attack_detection_dups.php */
$ATTACK_DETECTION_DUPS = array("realname","address1","address2","country","zip",
"phone","postcode","state","email");
/* Help: http://www.tectite.com/fmdoc/attack_detection_specials.php */
define("ATTACK_DETECTION_SPECIALS",true);
/* Help: http://www.tectite.com/fmdoc/attack_detection_specials.php */
$ATTACK_DETECTION_SPECIALS_ONLY_EMAIL = array("derive_fields","required",
"mail_options","good_url","bad_url","good_template",
"bad_template");
/* Help: http://www.tectite.com/fmdoc/attack_detection_specials.php */
$ATTACK_DETECTION_SPECIALS_ANY_EMAIL = array("subject");
/* Help: http://www.tectite.com/fmdoc/attack_detection_many_urls.php */
define("ATTACK_DETECTION_MANY_URLS",0);
/* Help: http://www.tectite.com/fmdoc/attack_detection_many_url_fields.php */
define("ATTACK_DETECTION_MANY_URL_FIELDS",0);
/* Help: http://www.tectite.com/fmdoc/attack_detection_url_patterns.php */
$ATTACK_DETECTION_URL_PATTERNS = array(
'(^|[^-a-z_.0-9]+)(?<!@)([-a-z0-9]+\.)+(com|org|net|biz|info|name|pro|tel|asia|cat)\b',
'(^|[^-a-z_.0-9]+)(?<!@)([-a-z0-9]+\.)+(com{0,1}|org|net)\.[a-z][a-z]\b');
/* Help: http://www.tectite.com/fmdoc/attack_detection_ignore_errors.php */
define("ATTACK_DETECTION_IGNORE_ERRORS",false);
/* Help: http://www.tectite.com/fmdoc/geoip_lic.php */
$GEOIP_LIC = ""; // default - no GeoIP
/* Help: http://www.tectite.com/fmdoc/zero_is_empty.php */
define("ZERO_IS_EMPTY",false);
/* Help: http://www.tectite.com/fmdoc/session_name.php */
$SESSION_NAME = "";
/* Help: http://www.tectite.com/fmdoc/hook_dir.php */
$HOOK_DIR = "";
/* UPGRADE CONTROL
** FILTERS:lt:8.04:merge:The FILTERS configuration has
** been modified to include some new standard filters.:
** FILTER_ATTRIBS:lt:8.04:no_keep:The FILTER_ATTRIBS configuration has
** been modified to include new information about the standard filters.:
** ATTACK_DETECTION_URL_PATTERNS:eq:8.02:no_keep:The ATTACK_DETECTION_URL_PATTERNS
** configuration has been modified to fix a bug.:
** FILTER_ATTRIBS:lt:4.00:no_keep:The FILTER_ATTRIBS configuration has
** been modified to include new information about the standard filters.:
** SET_REAL_DOCUMENT_ROOT:gt:4.07:copy_from=REAL_DOCUMENT_ROOT:The
** REAL_DOCUMENT_ROOT configuration has been renamed to SET_REAL_DOCUMENT_ROOT.:
** EMAIL_NAME:lt:6.01:no_keep:The EMAIL_NAME configuration has
** been modified to match hyphens ('-') in email addresses.:
** ZERO_IS_EMPTY:le:6.01:set_to=true:ZERO_IS_EMPTY has been
** set to a value that duplicates previous behaviour.:
** END OF CONTROL
/* END OF CONFIGURATION (do not alter this line in any way!!!) */
// the following constants define all FormMail messages
define('MSG_SCRIPT_VERSION',0); // This script requires at least PHP version...
define('MSG_END_VERS_CHK',1); // If you're happy...
define('MSG_VERS_CHK',2); // A later version of FormMail is available...
define('MSG_CHK_FILE_ERROR',3); // Unable to create check file...
define('MSG_UNK_VALUE_SPEC',4); // derive_fields: unknown value specification...
define('MSG_INV_VALUE_SPEC',5); // derive_fields: invalid value specification...
define('MSG_DERIVED_INVALID',6); // Some derive_fields specifications...
define('MSG_INT_FORM_ERROR',7); // Internal form error...
define('MSG_OPTIONS_INVALID',8); // Some mail_options settings...
define('MSG_PLSWAIT_REDIR',9); // Please wait while you are redirected...
define('MSG_IFNOT_REDIR',10); // If you are not redirected...
define('MSG_PEAR_OBJ',11); // Failed to create PEAR Mail object...
define('MSG_PEAR_ERROR',12); // PEAR Mail error...
define('MSG_NO_FOPT_ADDR',13); // You have specified "SendMailFOption"...
define('MSG_MORE_INFO',14); // More information...
define('MSG_INFO_STOPPED',15); // Extra alert information suppressed...
define('MSG_FM_ALERT',16); // FormMail alert
define('MSG_FM_ERROR',17); // FormMail script error
define('MSG_FM_ERROR_LINE',18); // The following error occurred...
define('MSG_USERDATA_STOPPED',19); // User data suppressed...
define('MSG_FILTERED',20); // This alert has been filtered...
define('MSG_TEMPLATES',21); // You must set either TEMPLATEDIR or TEMPLATEURL...
define('MSG_OPEN_TEMPLATE',22); // Failed to open template...
define('MSG_ERROR_PROC',23); // An error occurred while processing...
define('MSG_ALERT_DONE',24); // Our staff have been alerted...
define('MSG_PLS_CONTACT',25); // Please contact us directly...
define('MSG_APOLOGY',26); // We apologize for any inconvenience...
define('MSG_ABOUT_FORMMAIL',27); // Your form submission was processed by...
define('MSG_PREG_FAI -
I am having a problem getting the return (back end) to work
on my dreamweaver form. i know this is a simple task however for
some reason i have a problem. i am trying to use form mail script
but for some reason i keep getting errors.Hello,
To get some help, you'll need to give a bit more information.
Does the "back end" send an email, save information to a
database or both
and then redirect to another page or not?
What isn't working?
Are you getting an error message?
What server side language are you using?
What script are you using for the form action, whatever it
is.
Can you post a link to the page?
Thanks,
Tim
"climaxprod" <[email protected]> wrote in
message
news:fv31qh$nrs$[email protected]..
>I am having a problem getting the return (back end) to
work on my
>dreamweaver
> form. i know this is a simple task however for some
reason i have a
> problem.
> i am trying to use form mail script but for some reason
i keep getting
> errors.
>
> -
Multi-select options in Dreamweaver form?
Hi folks,
I am creating a booking form that is hosted on a secure site for credit card transmission. This is the form customers complete https://supersecure.co.nz/users/9ba5/215/form_walks_retail.html and they are directed from this page: http://www.qtnz.co.nz/2013
A typical booking would be 2 adults and perhaps 1 or 2 children and they'd likely choose only one of the activity options.
Previously I've used pick lists for customers to choose the number of places they are booking but my clients' product list has grown and it's very tedious having to create individual fields and labels for each possible activity that can be booked.
I am stuck with this particular method of collating credit card data, so an e-commerce site is not really an option.
As folks here are far more experienced than I in DW forms I'd be grateful if anyone could suggest an easier way of taking bookings through a Dreamweaver form.
Thanks in advance for advice
JoSame question. Any ideas?
-
Dreamweaver Forms Submit button
I can not get the submit button to work on the Forms page I built. Is it true that some special code is needed from the website server to put this all together and make it work? If so, why doesn't it tell you that somewhere in the Dreamweaver tools. It seems it shouldn't have to be that hard to make it work. If there is an easier way to make it work, please let me know. All I get when I try it is an empty email comes up when I click Submit. There is no form included in it. I need to get this working on our website. Please help. Thanks.
Dreamweaver is a professional level tool, it assumes you understand the basics of html, css, javascript and some server scripting.
It's not terribly difficult to make a form function (using a mailto: link in the form's action attribute), it's only a bit more difficult to make it function securely, without opening your email address up to massive amounts of spam and causing half of your viewers to see nothing when clicking on the submit button.
Personally, I use the Formmail script from http://www.tectite.com it's fairly secure out of the box (and offers more security with reCapcha) and has a lot of features you can choose to use, or not. It's loads safer and much more reliable than attempting to use a mailto: link.
If your server supports PHP, I'd suggest trying it out. -
In desperate help with Dreamweaver Forms
I am looking to create a textfield within my form for viewers to enter a certain phrase or code to enable them to view my next page on my website. In other words, I am creating a simple game on dreamweaver were viewers have to enter a code within a textfield in order to view the next page once submitted. How can I tell dreamweaver what the word or code is for viewers to enter?? This code would have to be entered correctly, otherwise they would not be able to view the lext page (level 2). I have tried using spry validation but cannot seem to figure it out. Please if someone can help me i would be very grateful.
php will do this quiet easily if you can use it? A simple example of the code/form is below:
Copy code and paste into a new Dreamwaever document and save it as next_level.php The page sends the information collected via the form back to itself. If the person enters the correct code in this case 12345 they get taken to www.bbc.co.uk if they enter the wrong code they get a failure message. You can alter all of the above i.e., code and url to go to in the code below.
You can either use this locally if you have php set up or upload it to your server if it runs php.
<?php
if (array_key_exists('sumbit', $_POST)) {
$code = $_POST['code'];
if ($code == "12345") {
header('Location: http://www.bbc.co.uk');
else {
$responseMessage = "Sorry, the code you entered is incorrect!";
?>
<!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>
</head>
<body>
<form id="checkCode" name="checkCode" method="post" action="next_level.php">
<label>Code
<input type="text" name="code" id="code" />
</label>
<label>Submit
<input type="submit" name="sumbit" id="sumbit" value="Submit" />
</label>
</form>
<?php
if (isset($responseMessage)) {
echo $responseMessage;
?>
</body>
</html> -
I have tried to find this information and no one seems to be
able to help me (including Adobe Tech Support).
What I am trying to do is create a form on a web site that
has four categories...Year, Make, Model, Engine. It is kind of like
what is on AutoTrader or KBB.
These need to be linked...Year (i.e, 2007) would pull up all
the makes made for that year. Make (i.e, Acura) would pull up all
the models of that make for that year. Model (i.e., MDX) would pull
up the engine types for that model, make, and year.
Help me, please!!I've got an extension which will do two - linked make to
model, for
example, here:
http://www.kaosweaver.com/extensions/details.php?id=88
Paul Davis
http://www.kaosweaver.com/
Visit us for dozens of useful Dreamweaver Extensions.
http://www.communitymx.com/
Partner at Community MX - Extend your knowledge
BPhilipson wrote:
> I have tried to find this information and no one seems
to be able to help me
> (including Adobe Tech Support).
>
> What I am trying to do is create a form on a web site
that has four
> categories...Year, Make, Model, Engine. It is kind of
like what is on
> AutoTrader or KBB.
>
> These need to be linked...Year (i.e, 2007) would pull up
all the makes made
> for that year. Make (i.e, Acura) would pull up all the
models of that make for
> that year. Model (i.e., MDX) would pull up the engine
types for that model,
> make, and year.
>
> Help me, please!!
> -
Dreamweaver forms do not function in Firefox, cannot fill in...
Form built in Dreamweaver works when it wants in Firefox. Works fine in Safari & Explorer. Have reloaded original working version. Still does not work in Firefox.
Please provide a public URL or reduced test case that exhibits this issue.
-
Dreamweaver Form and Form2Excel woes
I'm a brand-new user on this forum. I'm trying to get a form
together using Dreamweaver and I need help with two problems. The
form is at www.faithfarmteams.com.
1. When I test the form, and I purposefully ignore a required
field, I get a popup asking me to fill in that field but then it
automatically redirects to the "thanks" page, instead of taking me
back to the form to fix the error. How do I fix this problem?
2. I downloaded Form2Excel to collate form results into a csv
file. I've installed it following their instructions carefully, but
when I test the form and then go to where the csv file should be,
the only csv files there contain only a couple of fields, neither
of which is on my form and which only contain gibberish. How do I
fix this problem? (I have e-mailed the Form2Excel tech support, but
I'm trying to fix this more quickly if possible.)
Any help would be appreciated - thanks.1. Most validation of this type is initially handling using
javascript
attached to the form . I can not see this on the page which I
assume means
that you are doing it server side. In which case you need to
look at the
code there.
2. It sounds like your csv is not working at all and what you
are seeing is
data in the original file that comes with the tool. There
could be a number
of reasons why there is nothing there but the PHP experts
would probably
need to see some code to work it out.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"zapzorak" <[email protected]> wrote in
message
news:f0rgjb$gac$[email protected]..
> I'm a brand-new user on this forum. I'm trying to get a
form together
> using
> Dreamweaver and I need help with two problems. The form
is at
> www.faithfarmteams.com.
>
> 1. When I test the form, and I purposefully ignore a
required field, I get
> a
> popup asking me to fill in that field but then it
automatically redirects
> to
> the "thanks" page, instead of taking me back to the form
to fix the error.
> How
> do I fix this problem?
>
> 2. I downloaded Form2Excel to collate form results into
a csv file. I've
> installed it following their instructions carefully, but
when I test the
> form
> and then go to where the csv file should be, the only
csv files there
> contain
> only a couple of fields, neither of which is on my form
and which only
> contain
> gibberish. How do I fix this problem? (I have e-mailed
the Form2Excel tech
> support, but I'm trying to fix this more quickly if
possible.)
>
> Any help would be appreciated - thanks.
> -
Dreamweaver Form redirect not working
Well, I feel really stupid having to be here seeing as how I
took a degree in web design, but I obviously never paid attention
in the class where we learned forms oh so many years ago.
I am working in Dreamweaver 8, and I have created a simple
form:
http://www.realmofmystery.com/app.html
This is a free website I am doing for some friends, so
nothing fancy. And, I learned web design before all the CGI and PHP
stuff got big, so I prefer to do things simply.
The form works fine, emails the results like perfect, but it
refuses to redirect the page to the confirmation. I thought I could
add an onClick to the submit button, but this cancels out the form
processing.
Any ideas? I don't know enough about JavaScript to write my
own script, but I am assuming the onClick would work if there was
also a time delay written into the script that gave the form enough
time to submit before redirecting to the confirmation page.
Also - (I know, eight million questions) when I submit the
form, it uses my Outlook to send it, but what about for people who
only use server based emails like gmail and hotmail and such? How
does it send for them?
Let me know if you need any other information.
Again, thanks in advance!Select the form, then in properties inspector set the action
of the form and
then browse to the confirmation page.
Dave
"Ivae" <[email protected]> wrote in message
news:fsoslk$nvh$[email protected]..
> Well, I feel really stupid having to be here seeing as
how I took a degree
in
> web design, but I obviously never paid attention in the
class where we
learned
> forms oh so many years ago.
>
> I am working in Dreamweaver 8, and I have created a
simple form:
>
http://www.realmofmystery.com/app.html
>
> This is a free website I am doing for some friends, so
nothing fancy.
And, I
> learned web design before all the CGI and PHP stuff got
big, so I prefer
to do
> things simply.
>
> The form works fine, emails the results like perfect,
but it refuses to
> redirect the page to the confirmation. I thought I could
add an onClick to
the
> submit button, but this cancels out the form processing.
>
> Any ideas? I don't know enough about JavaScript to write
my own script,
but I
> am assuming the onClick would work if there was also a
time delay written
into
> the script that gave the form enough time to submit
before redirecting to
the
> confirmation page.
>
> Also - (I know, eight million questions) when I submit
the form, it uses
my
> Outlook to send it, but what about for people who only
use server based
emails
> like gmail and hotmail and such? How does it send for
them?
>
> Let me know if you need any other information.
>
> Again, thanks in advance!
>
> -
There is probably a simple solution to my problem but I can't
seem to get the answer
I have created a simple form:
http://www.harborviewmg.com/form.html
(i also tried a VERY basic one here:
http://www.harborviewmg.com/testform.html
and it won't work. I keep getting this message: "No variables
sent to form! Unable to process request." I am using dreamweaver to
create this on OS X. Someone else set up the website and I am just
adding the form to the site for them. The web site is hosted
through godaddy.com and has been set up for windows with a .asp
file included for form use. (there i no .cgi included) I followed
the instructions on the godaddy site to create the form and then
contacted them when it wouldn't work. I mentioned that I was
working on a mac and i though that was the issue. They got back in
touch with me and said...
Thank you for contacting support. We were able to
successfully receive emails sent through a testing form of ours
that used the gdform.asp in your hosting account. As we were not
able to do this through your form, the coding in your form must be
incorrect. Please research how to properly code forms in HTML, as a
starting point here is the appropriate page in our own help center.
So can anyone take a look at the form i've created and tell
me if I have done something wrong?
THANK YOU!Yes I did get it to work - but I had help. The main issue was
this code which had to be removed - enctype="text/plain"
(that was included in the godaddy.com instructions)
The only other thing that it was recommended I do was make
sure all the html was properly formed for instance:
<input name="Name1" type="text" id="Borrower1" value="Full
Name" size="30"> became
<input name="Name1" type="text" id="Borrower1" value="Full
Name" size="30"/>
hope this helps! -
I need help custimizing a form from a template i downloaded
online.
The form is already set up. When someone fills it out and
hits send there is an error.
How can I change the email address where I want this data
forwarded??
Thanks in advance.Post a link to the page, please. The answer is in the code.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Miggetts" <[email protected]> wrote in
message
news:g0vfcj$6k9$[email protected]..
>I need help custimizing a form from a template i
downloaded online.
>
> The form is already set up. When someone fills it out
and hits send there
> is
> an error.
>
> How can I change the email address where I want this
data forwarded??
>
> Thanks in advance.
> -
Pass contents of dreamweaver form field..
Hello from my script below:
<script type="text/javascript">
function OnSubmitForm()
if(document.myform.operation[0].checked == true)
document.myform.action ="https://webtrace.etdatacenter.com/webtrace.aspx?accesstype=autologin&cust=id_015&user=temp lateuser";
else
if(document.myform.operation[1].checked == true)
document.myform.action ="https://carrierconnect.etdatacenter.com/Default.aspx?accesstype=autologin&cust=id_015&user =username";
return true;
</script>
<form name="myform" target="_blank" method="post" action="" onsubmit="return OnSubmitForm();">
<fieldset>
<legend><font color="#FFFFFF">LOGIN</font></legend>
username: <input type="text" name="username"/><br /><br />
password: <input type="password" name="password"/><br />
<input type="radio" name="operation" value="1" checked="checked"/><font size="-1">Customer Tracking</font>
<input type="radio" name="operation" value="2" /><font size="-1">Web Booking </font>
<input type="submit" name="submit" value="submit" />
</fieldset>
</form>
The user fills in their username and password then selects either 'customer tracking' or 'web booking' radio button.....Based on the radio button selected they are directed either to
https://webtrace.etdatacenter.com/webtrace.aspx?accesstype=autologin&cust=id_015&user=user name if 'customer tracking' or
https://carrierconnect.etdatacenter.com/Default.aspx?accesstype=autologin&cust=id_015&user =username if 'web booking'
How do I pass the contents of the username where I have currently 'username' which is the form field, but I need to pass the contents.
thanksif(document.myform.operation[0].checked == true)
document.myform.action ="https://webtrace.etdatacenter.com/webtrace.aspx?accesstype=autologin&c ust=id_015&user=templateuser";
else
if(document.myform.operation[1].checked == true)
document.myform.action ="https://carrierconnect.etdatacenter.com/Default.aspx?accesstype=autolo gin&cust=id_015&user=" + document.myform.username.value; -
Rate from 1-10 Dreamweaver form (validate - no using same # twice)
Hello,
I have a customer that wants me to have a list of 10 items with a drop down menu next to each item with the numbers 1 - 10. They would like their customers to rate the items in this list and they would like to make sure no number is used twice. How can I do this?I've used spry rating for some product page developments and I believe spry's rating observer prevents a user from rating twice in the same pageload, but it doesn't prevent a user from entering the same value to different rating elements in one pageload. For instance: spry will let you rate then prevent you from rating again during the same pageload, but you can't use out-of-box spry rating to have a rating scale of 1-10 for 10 items on one page and use spry rating observer to prevent your rating of 5 for item 1 and rating of 5 for item 2.
Therefore I don't think it will work for your request that:
they would like to make sure no number is used twice
It's not the same as:
place a widget observer to ensure that a value is not entered twice.
You'd need some other javascript method to develop this feature. -
Dynamic Forms in Dreamweaver?
Hi guys,
We hav a project using livecycle designer; but that relies on the user having adobe reader and in early user testing some folks complain about having to install it (WOW_i mean it's free, great, and takes two minutes!!!)
So we thought we might build what are essentially backup versions of the forms in dreamweaver. So if a user has not adobe reader (and wont install it) they can click "use browser version" and go to a dreamweaver form.
Now we're new to dreamweaver (totally new this week.)
So can someone just confirm that we're thinking this through correctly.
We need to be able to mimic livecycle form behaviours
Basically can we have the following in dreamweaver:
Have multi-page forms (or really long layouts/whatever) - in livecycle some of the forms are about 10 a4 pages and we need this kind of room i
guess here also.......
hidden subforms that are shown on a click event
flowed structure - so hidden fields once shown push the rest down etc - so sequencing is preserved
button to email user entered data to a server system?
Our forms just need to be able to cater to lots of options - we do this in livecycle ones by having lots of subforms hidden and showing the one that corresponds to their choice or user entered data.
Just want to know if we're barking up the right tree in thinking of using dreamweaver? and also if there are better/simpler choices out there (other than saying tough install reader you lazy sods )
if dreamweaver is goer what books/resources would you recommend for getting started coming from livecycle/acrobat background.
Thanks folkshidden subforms that are shown on a click event
JavaScript. You are thinking too oversimplified here. it still needs to have the logic, does it not? The only way to do that in browsers is to use JavaScript.
flowed structure - so hidden fields once shown push the rest down etc - so sequencing is preserved
Spry Accordeon and its friends. Again, all JavaScript.
button to email user entered data to a server system?
Well, but what server system? You will need PHP, ASP, JSP or whatever to actually process the forms.
Just want to know if we're barking up the right tree in thinking of using dreamweaver?
As I said - you are grocely oversimplifying and in addition you are "spoiled" by the simplicity LifeCycle forms offer (no offense). So more or less it depends on how you actually will use your infrastructure. Custom developing a lot of code would only make sense if you use the system almost every day and in large numbers. For everything else you can find pre-made solutions like Wordpress with cforms or otehr widget-based, interactively configurable form generators. Requires only minor coding and styling, but supports quirte a few features from the start...
Mylenium
Maybe you are looking for
-
Why is it that when I delete an email message from an account on my iPhone it instantly disappears from the same email account on my wife's iPhone? We both have iOS7 and have imap email accounts.
-
How to use non-default Alias Table in Analyzer report
Hi,I defined many alias tables in Essbase. I would like to use a different alias table other than the "default" in Analyzer 6.5 report. In the on-line help, it said I can modify in "database connection properties" when first defining a new report to
-
How Do I Put A Pause In Text-To-Speech?
What character do I need to use in a sentence to get the TTS voice to pause? Thanks!
-
Why the contract data is not modifiable when I create a order
I have already assigned the Contract Profile to a sale order type in the Sale order type definition, and the contract profile has been set correct. When I create a order by this order type (Ive tried both copy and create a new order type), I cant m
-
A prgram called "my security shield keeps installing itself" i can't get rid of it
I recently installed Homestead Website software. As soon as the software was installed a program called "my security shield" keeps giving pop-ups that say viruses are trying to affect email lists, and everything else. I clicked on the button that sai