PDA

View Full Version : eMail not working


beertje
06-07-2009, 06:46 PM
I have no programming experience at all but I promised to help a friend with an exit survey. It is supposed to answer 5 questions and send the form by email. I downloaded a script from JavaSource and modified it with the inevitable result "Screwed Up And Not Working". I started the project in FrontPage and ended it in Dreamweaver CS4. Any help will be greatly appreciated.

George Carlile
beertje@mediaeclectic.com

beertje
06-08-2009, 05:56 AM
Sorry, I forgot to add the script...

<HTML>
<HEAD>
<TITLE>Exit Survey</TITLE>
<style type="text/css">
<!--
@import url("exit_survey.js.css");
-->
</style>
</HEAD>
<BODY bgcolor="#000000">
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{

if (theForm.comments.value == "")
{
alert("Please enter a value for the \"comments\" field.");
theForm.comments.focus();
return (false);
}

if (theForm.comments.value.length < 1)
{
alert("Please enter at least 1 characters in the \"comments\" field.");
theForm.comments.focus();
return (false);
}
return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><FORM NAME="FrontPage_Form1" onSubmit="return

FrontPage_Form1_Validator(this)" language="JavaScript">
<p style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF"><b>1. What important things did you learn from watching the TV program about Florida wildlife?</b> <BR>
</font>
<textarea name="q1" cols="115" style="font-family: Arial; text-align: left; word-spacing: 0; text-indent: 0; line-height:

100%; margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px; padding-bottom: 2px" tabindex="1"></textarea>
</p>
<P style="margin-top: 0; margin-bottom: 0"><font color="#FFFFFF"><b>2. After seeing this TV program, would you like to visit

one of these parks sometime in the near future?</b><BR>
</font>
<textarea name="q2" cols="115" style="font-family: Arial; text-align: left; word-spacing: 0; text-indent: 0; line-height:

100%; margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px; padding-bottom: 2px" tabindex="2"></textarea>
<P style="margin-top: 0; margin-bottom: 0"><font color="#FFFFFF"><b>3. Which of the 2 natural areas highlighted in the TV

program will you be most likely to visit and why?
</b> <BR>
</font>
<textarea name="q3" cols="115" style="font-family: ar; text-align: left; word-spacing: 0; text-indent: 0; line-height: 100%;

margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px; padding-bottom: 2px" tabindex="3"></textarea>
<P style="margin-top: 0; margin-bottom: 0"><font color="#FFFFFF"><b>4. What important things did you learn from watching the

TV program about Florida wildlife?
</b> <BR>
</font>
<textarea name="q4" cols="115" style="font-family: ar; text-align: left; word-spacing: 0; text-indent: 0; line-height: 100%;

margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px; padding-bottom: 2px" tabindex="4"></textarea>
<P style="margin-top: 0; margin-bottom: 0"><font color="#FFFFFF"><b>5. What important things did you learn from watching the

TV program about Florida wildlife?
</b> <BR>
</font>
<textarea name="q5" cols="115" style="font-family: Arial; text-align: left; word-spacing: 0; text-indent: 0; line-height:

100%; border-style: solid; border-width: 1px; margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px;

padding-bottom: 2px" tabindex="5"></textarea>
<P style="margin-top: 0; margin-bottom: 0"><font color="#FFFFFF"><b>Name </b> <BR>
</font>
<INPUT TYPE="text" NAME="name" VALUE="" SIZE=50 tabindex="6" style="font-family: ar; text-align: left; word-spacing: 0;

text-indent: 0; line-height: 100%; margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px; padding-bottom: 2px">
<P style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF"><b>Telephone </b> <BR>
</font>
<INPUT TYPE="text" NAME="tel" VALUE="" SIZE=50 tabindex="7" style="font-family: ar; text-align: left; word-spacing: 0;

text-indent: 0; line-height: 100%; margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px; padding-bottom: 2px">
<P style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF"><b>eMail </b> <BR>
</font>
<INPUT TYPE="text" NAME="email" VALUE="" SIZE=50 tabindex="8" style="font-family: ar; text-align: left; word-spacing: 0;

text-indent: 0; line-height: 100%; margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px; padding-bottom: 2px">
<P style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF"><b>URL</b> <BR>
</font>
<input type="text" name="url" value="" size=50 tabindex="9" style="font-family: Arial; text-align: left; word-spacing: 0;

text-indent: 0; line-height: 100%; margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px; padding-bottom: 2px">
<P style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF"><b>Comments <BR>
</b></font>
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Minimum-Length="1" -->
<textarea name="comments" cols="115" style="font-family: Arial; text-align: left; word-spacing: 0; text-indent: 0;

line-height: 100%; margin: 0; padding-left: 1px; padding-right: 2px; padding-top: 1px; padding-bottom: 2px"

tabindex="10"></textarea>
<P style="margin-top: 0; margin-bottom: 0">
<P align="center" style="margin-top: 0; margin-bottom: 0">
<P align="center">
<INPUT name="sendit" TYPE="submit" id="sendit" style="float: center; font-family:Arial; font-weight:bold; padding-left:1px;

padding-right:2px; padding-top:1px; padding-bottom:2px" tabindex="11" onClick="mailMe()" VALUE="Send Mail"><BR>
</FORM>
</BODY>
</HTML>