Dreamweaver form help
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!
Similar Messages
-
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.
>
> -
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 new to Dreamweaver 8 (but have worked with simple html a
quite a bit) and am working on building a, hopefully, simple
prototype for a project. What I need to do is collect user-entered
text and user-selected dropdown box data on one page and send it to
another for presentation there. After looking at the Help screens,
I looked at using Session variables and it seems that is the best
way to pass the data. Where I am stuck is in the (from Help
Contents) Making Pages Dynamic - Creating Forms - Creating HTML
forms help. They first say to, in step 2, Select Insert > Form
(which doesn't do anything - you have to click another option,
which I figured meant Form again). Then, in step 3, they say to
"Specify the page or script that will process the form data." by
selecting the file in the Action box in Properties. I don't have a
file to "process the form data" and don't really know what they are
talking about. Help!
I originally (before I reverted to using Help) set it up with
Insert->Form->Text Field text entry boxes, figuring this was
a Form field that could be captured and passed on. Right? Wrong? I
guess I thought the method would be to define a variable name
associated with a text input field in one page, then pass it with
the value to the next page. That is pretty much what it seems
Session variables do (?), which I discovered when I started looking
at Help.
So, was I on the right track for a simple implementation and
missed the way to capture and transmit the data, or do I need to
use the Forms->Forms option? If the former, how do I define the
variable names? If the later...well, I am real confused then. :-)
Thanks for your help.
(btw, we do have training material coming - went with
Dreamweaver for Dummies, Peachpit Macromedia Dreamweaver 8 Hands-On
Training "dead tree media" and TechRepublic Fast Track Dreamweaver
8 CBT. Any opinions on those?)Session variables as the name suggests are created when a
user starts a session and last till the session is open. You form
doesn't really need session variables unless you are carrying form
data from one page to another and need to keep it associated with
that specific user such as in shopping cart applications.
I have never used the dreamweaver insert form, so can't help
you there. why not code the form yourself, especially since you
have been using html
The link below may help.
http://www.w3schools.com/html/html_forms.asp -
i need some FREE website templates that i can edit in dreamweaver.. help!!! anyone know where i can find good ones?
By Template, are you looking for DW Template.dwt files?
Dreamweaver templates: Customizable starter designs for beginners | Adobe Developer Connection
Or pre-built CSS & HTML Layouts (starter pages)?
For starter pages in DW, go to File > New > Blank page > HTML.
Select a layout from the 3rd panel and hit Create button.
Or, look at Project Seven's commercial CSS Layouts and Page packs (not free, but well worth the investment if you want a good final product).
http://www.projectseven.com/
Or do you want Responsive Layouts that work in mobile, tablet and desktop?
Foundation Zurb
http://foundation.zurb.com/templates.php
Skeleton Boilerplate
http://www.getskeleton.com/
Initializr (HTML5 Boilerplate, Responsive or Bootstrap)
http://www.initializr.com/
DMX Zone's Bootstrap FREE extension for DW
http://www.dmxzone.com/go/21759/dmxzone-bootstrap/
Nancy O. -
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?
-
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!!
> -
Hi there
I have a form on a webpage that I have altered that works
fine when submitted ..however there are 2 fields that don't show up
in the received email ..The boy/girl radio button selection and the
Related Radio button group (6 selections)
Can anyone help me solve this problem ..the setup is below
..thanks RobWouldn't "gender" be a more appropriate usage than "sex". I
doubt that this
distinction is what is causing the problem, though! 8)
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
==================
"Alan" <[email protected]> wrote in
message
news:C43CB10E.2F95F4%[email protected]...
>
>
> <input type="radio" name="Relatedchild" value="radio"
id="HowRelated_0">
>
> If you use both name and ID, they must match.
>
> <input name="Childsexboy" type="radio" value="radio1"
id="Childsex_0">
> <input name="Childsexgirl" type="radio"
value="radio1" id="Childsex_1">
>
> same issue about name and id not matching, and also, a
"set" of radio
> buttons must use the same name/id for them to work as
radio buttons. That
> way only one of them can be selected at a time.
>
> The asp must match the same name/id to retrieve the
values.
>
> There is nothing in the asp section to put the values
for the child's sex
> or
> relation into the outgoing email.
>
> Fix:
> change the name/id of the two sex radio buttons. Use the
VALUE to set the
> information you want.
> <input name="ChildsSex" type="radio" value="male"
id="ChildsSex">
> <input name="ChildsSex" type="radio" value="female"
id="ChildsSex">
>
> then add a line in the asp to put the ChildsSex data
into the outgoing
> email.
>
> "Child's Sex: " & Request.Form("ChildsSex") &
vbcrlf & _
>
> Repeat for the Related radio buttons.
> Give ALL of them the same name and id.
> use the value to set the ... value you want. And put a
line in the asp to
> get and sent the value for that form field.
>
> instead of:
> <input type="radio" name="Relatedgrandchild"
value="radio"
> id="HowRelated_1">
>
> something like:
> <input type="radio" name="Relationship"
value="grandchild"
> id="Relationship">
>
>
>
> --
> Alan
> Adobe Community Expert, dreamweaver
>
>
http://www.adobe.com/communities/experts/
>
>
> -
Dreamweaver CS4 Help is LIVE!!
HI gang,
We have posted DW CS4 help in its complete and almost
impeccable form:
http://help.adobe.com/en_US/Dreamweaver/10.0_Using/
Well, yes, it is actually far from impeccable. If you see a
problem, do let me know.
The new features, with links to their topics, are listed
here:
http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WS2C41F19D-502B-4fb5-8A54-4442E2127C84a .html
So all of you style hounds who wanted to know how Adobe
refers to things in the product can now go have a look inside the
horse’s mouth.
It would be helpful to us if those of you who blog about DW
could write something about the CS4 help being released, AND
provide a link to the What’s New features, or to any other
help page in the new help system. This will speed the indexing
process for the google search engine crawler, which is the basis of
our new Community Help search mechanism. (Feel free to link to the
main index page too, but since it doesn’t have any other
links directly on it, it’s not so great for the google
crawler.)
Have fun!
JonHI gang,
We have posted DW CS4 help in its complete and almost
impeccable form:
http://help.adobe.com/en_US/Dreamweaver/10.0_Using/
Well, yes, it is actually far from impeccable. If you see a
problem, do let me know.
The new features, with links to their topics, are listed
here:
http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WS2C41F19D-502B-4fb5-8A54-4442E2127C84a .html
So all of you style hounds who wanted to know how Adobe
refers to things in the product can now go have a look inside the
horse’s mouth.
It would be helpful to us if those of you who blog about DW
could write something about the CS4 help being released, AND
provide a link to the What’s New features, or to any other
help page in the new help system. This will speed the indexing
process for the google search engine crawler, which is the basis of
our new Community Help search mechanism. (Feel free to link to the
main index page too, but since it doesn’t have any other
links directly on it, it’s not so great for the google
crawler.)
Have fun!
Jon -
Problem inserting .swf in dreamweaver 8.Help!!
Hi everybody.I have a problem since a lot of time jaja.I habe
problems inserting .swf files in dreamweaver 8.I can insert, when I
press f12 to see in Internet Explorer you see the movie, but when
you put mouse over the banner I design.This has a bad behavior, it
transform to hand, because the banner is a buttom, and again
transform in default mode and it doesn`t stay in buttom form.When I
did the flash, I saw the .sfw file in HTML, that generated the same
Flash, and it look good, and had a hood behavior, but when I insert
in dreamweaver 8 it doesn`t work correctly.I download the
Dreamweaver 8 Update 2. Now I have Dreamveaver 8.0.2 or something
like that.
I think that the problems is in the form that Dreamweaver
Insert the .swf file.
My way is Insertar - Media - Flash.
Somebody can help me? this problem I can´t resolved and
I new whit this.
English is not mi first Language, sorry if I had mistakes.ok....
i installed php 5.2.10
and downloaded php-5.2.10 zip file i found .dll
its ok
but in next help topic (testing PHP installation (Windows) )
[http://livedocs.adobe.com/dreamweaver/8/using/gs_18_q7.htm]
i didnt gt the result...
what may be the problem?
plz advice
thanks in advacne -
I just developed a simple php form (my first time). I am
trying to enable the information that is typed in the form by
visitors, to be emailed directly to me. So far I can only get the
person's email address and message left in information box to be
sent to my email address. However, there are other contents within
the form that I also need to receive. Can anyone help.
http://www.newnie.com/informationform.php
http://www.newnie.com/handle_form.phpOn 18 Oct 2007 in macromedia.dreamweaver.appdev, CellaMarr
wrote:
> When I fill out the form and press send the only
information that I
> receive is the "First Name", "Email Address", and
"Project Details".
> All the other info does not show up. Why will it only
send some of
> the information and not all of it? ("Phone Number",
"Profession",
> "Budget", "Hosting", and "Domain")
Because you're not telling it to send them to you. Consider:
$success = mail($to, $subject, $detail, $headers);
This line is correct and sends the email as it should. You're
telling
it that you want $detail as the body of the message. However,
when you
load variables:
$name = $_POST['name'];
$email = $_POST['email'];
$number = $_POST['number'];
$detail = $_POST['detail'];
$profession = $_POST['profession'];
$entertainer = $_POST['entertainer'];
$domain = $_POST['domain'];
$hosting = $_POST['hosting'];
$subject = 'Message from newnie.com'; // this is the subject
line. you
can make this say whatever you want
$headers = "From: $name <$email>\n";
$headers .= "Reply-To: $name <$email>\n";
$to = '[email protected]'; //change this to your email
you're only putting the contents of the 'detail' form field
into
$detail. You need to do something more like:
$body = 'Name: ' . $_POST['name'] . "\n";
$body .= 'EMail: ' . $_POST['email'] . "\n";
$body .= 'Number: " . $_POST['number'] "\n";
// etc
$subject = 'Message from newnie.com'; // this is the subject
line. you
can make this say whatever you want
$headers = "From: $name <$email>\n";
$headers .= "Reply-To: $name <$email>\n";
And your mail() statement becomes:
$success = mail($to, $subject, $body, $headers);
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php -
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 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. -
Simple php form help, I think (checkboxes)
I need a bit of help with some checkboxes in a form being proccessed with php.
I'm using an array to collect the information then having it emailed.
<input name="colours[]" value="Red" type="checkbox">Red <br />
<input name="colours[]" value="Blue" type="checkbox">Blue <br />
<input name="colours[]" value="Green" type="checkbox">Green <br />
<input name="colours[]" value="Yellow" type="checkbox">Yellow <br />
What I'm getting back in the email at the moment is:
I'm interested in these colours: Array
Below is the $body of the message:
$body = "Please contact me regarding the following:\r\n\r\n";
$body .= "Name: ".stripslashes($_POST['name'])."\r\n";
$body .= "Address: ".stripslashes($_POST['address'])."\r\n";
$body .= "Postcode: ".stripslashes($_POST['postcode'])."\r\n";
$body .= "Telephone: ".stripslashes($_POST['telephone'])."\r\n";
$body .= "Email: ".stripslashes($_POST['email'])."\r\n";
$body .= "I'm interested these colours: ".$_POST['colours']."\r\n";
I guess I need some more php to desl with the array?????
Thanks
OsDuplicate post. Original has been moved to Dreamweaver Application Development. Locking this thread.
Maybe you are looking for
-
Change the background color of a table created by ADDT (Login)
I am trying to change the background color of a table in the login form created by the developer's toolbox. I then go and select the table and change the background color. But it has no effect. The only insight I have is when I delete this "" from th
-
Macbook pro slow, kernel task is taking all the memory
Hi, I'm having problems with my Macbook Pro (13-inch, Early 2011). It's been very slow lately, not only when starting but mostly all the time, even when it comes to Internet and basic tasks. I went to the activity monitor and found out this kernel_ta
-
I have Adobe Creative Suite 5 Design Premium (Teacher and Student Edition). I've purchased the upgrade to Adobe Photoshop CS6 - Trying to install, and it says the Adobe CS6 is valid - but only provides 'photoshop' options for entering my old serial
-
Extremely Slow when Opening a new tab
I have just bought my new Retina MacBook Pro after my 3 years Macbook Pro 13" is total lost and get the Mountain Lion OSX with latest 10.8.2 version After migrating the MacOSX from Snow Leopard to Mountain Lion, my Mac is everything ok but without Sa
-
I can do it in PHP but how with CF?
I have a sizable database that keeps track of profit per job that goes back several years. What I need to do is create a table layout of: 1) Customer's ID 2) Total $ from 2004 3) Total $ from 2005 3) Total $ from 2006 In PHP I do a fair amount of que