Forum Moderators: open

Message Too Old, No Replies

Help understanding form

         

Joah fr Alberta

5:26 pm on May 23, 2005 (gmt 0)

10+ Year Member



Hello, with regards to the following form, do I need to specify a directory on my server for the reply or will the reply go to my email?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="458" height="476" border="0" align="left">
<tr>
<td width="452" height="448" align="left" valign="middle" background="PierraPainting/House-transparent-2.gif"><p align="justify"><font size="4"><em><font size="5">Pierra Painting</font></em> is dedicated to our clients and we will do our best to get back to you as soon as possible. Note that a proper estimate can only be done in person.</font>
</p>
<div align="justify">
<p><font size="4">Call 447-5407 between 8am and 9pm for a free estimate or send us an email john@pierrapainting.com</font></p>
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan -->
<script language="JavaScript" type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{

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

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

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

if (theForm.Area.value.length < 3)
{
alert("Please enter at least 3 characters in the \"Area\" field.");
theForm.Area.focus();
return (false);
}

if (theForm.Area.value.length > 3)
{
alert("Please enter at most 3 characters in the \"Area\" field.");
theForm.Area.focus();
return (false);
}

var checkOK = "0123456789-.";
var checkStr = theForm.Area.value;
var allValid = true;
var validGroups = true;
var decPoints = 0;
var allNum = "";
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
if (ch == ".")
{
allNum += ".";
decPoints++;
}
else
allNum += ch;
}
if (!allValid)
{
alert("Please enter only digit characters in the \"Area\" field.");
theForm.Area.focus();
return (false);
}

if (decPoints > 1 ¦¦!validGroups)
{
alert("Please enter a valid number in the \"Area\" field.");
theForm.Area.focus();
return (false);
}

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

if (theForm.Phone.value.length < 7)
{
alert("Please enter at least 7 characters in the \"Phone\" field.");
theForm.Phone.focus();
return (false);
}

if (theForm.Phone.value.length > 7)
{
alert("Please enter at most 7 characters in the \"Phone\" field.");
theForm.Phone.focus();
return (false);
}

var checkOK = "0123456789-.";
var checkStr = theForm.Phone.value;
var allValid = true;
var validGroups = true;
var decPoints = 0;
var allNum = "";
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
if (ch == ".")
{
allNum += ".";
decPoints++;
}
else
allNum += ch;
}
if (!allValid)
{
alert("Please enter only digit characters in the \"Phone\" field.");
theForm.Phone.focus();
return (false);
}

if (decPoints > 1 ¦¦!validGroups)
{
alert("Please enter a valid number in the \"Phone\" field.");
theForm.Phone.focus();
return (false);
}
return (true);
}
//--></script>
<!--webbot BOT="GeneratedScript" endspan -->
<form language=JavaScript name=FrontPage_Form1
action=_vti_bin/shtml.exe/pierra.htm method=POST onSubmit="return FrontPage_Form1_Validator(this)" webbot-action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" s-email-format="TEXT/PRE" s-email-address="john@pierrapainting.com" b-email-label-fields="TRUE" b-email-subject-from-field="FALSE" s-email-subject="Message:" s-date-format="%B %d, %Y" s-time-format="%I:%M %p" s-builtin-fields="Date Time" u-confirmation-url="http://www.pierrapainting.com/thankyou.htm" startspan -->
<input type="hidden" name="VTI-GROUP" value="99">

<center><center>
<table cellspacing=0 border=0 width="381">
<tbody>
<tr>
<td align=right width="59"><font color="#990000" size="3" face="Arial"><strong style="font-weight: 400"><font size="4">*</font></strong><strong style="font-weight: 400"></strong></font><font face="Arial" size="3"><strong style="font-weight: 400">Name:</strong></font></td>
<td align=left width="318"><font face="Arial"><b>
<!--webbot bot="Validation" s-display-name="Name" s-data-type="String" b-value-required="TRUE" -->
<input
size=38 name=Name>
</b></font></td>
</tr>
<tr>
<td align=right width="59"><font face="Arial" size="3"><font
color=#990000 size="4"><strong style="font-weight: 400">*</strong></font><strong style="font-weight: 400">E-Mail:</strong></font></td>
<td align=left width="318"><font face="Arial"><b>
<!--webbot bot="Validation" s-display-name="Email" b-value-required="TRUE" -->
<input
size=38 name=Email>
</b></font></td>
</tr>
<tr>
<td align=right width="59"><font face="Arial" size="3"><font face="Arial" size="3"><font color=#990000 size="4"><strong style="font-weight: 400">*</strong></font><font face="Arial" size="3"><font face="Arial" size="3"><strong style="font-weight: 400">Phone</strong></font></font> </font><strong style="font-weight: 400"> Number:</strong></font></td>
<td align=left width="318"><font face="Arial"><b>

<!--webbot bot="Validation" s-data-type="Number" s-number-separators="x." b-value-required="TRUE" i-minimum-length="7" i-maximum-length="7" -->
<input
maxlength=7 size=25 name=Phone>
</b></font></td>
</tr>
</tbody>
</table>
<font size=3 face="Arial"><strong style="font-weight: 400">Message:</strong></font><br>
<textarea name=Message rows=5 cols=47></textarea>
</center>
<p align=center>
<input type=reset value=Reset>
&nbsp;&nbsp;&nbsp;&nbsp;
<input type=submit value=Submit>
</p>
</center>
</form>
</div></td>
</tr>
</table>
</body>
</html>

dcrombie

7:04 pm on May 23, 2005 (gmt 0)



The 'handler' for your form is: _vti_bin/shtml.exe/pierra.htm

(or most likely _vti_bin/shtml.exe with /pierra.htm as a parameter)

Joah fr Alberta

10:10 pm on May 23, 2005 (gmt 0)

10+ Year Member



So I take it I require Front Page? Or, is there a way I can collect my form otherwise?