3.2.0

Hi! I need help with Last name verification alert, current date and credit card expirationd date comparison

<html>
<head>
<title>Angela Caver Order Form</title>
<link rel="stylsheet" href="mystyle.css" type="text/css"
<target="contents">

<script language="javascript">
<head>

<script>

function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which. length;i++){
var tempobj=which.elements[i]
if (tempobj.lastname.substring(0,8)=="required"){
pass=false
break
}
}
}
}
if (!pass){
alert("The last name field is required. Please complete then submit Orderform!")
return false
}
else
return true
}
</script>
</head>


<h2>
<div class="nav">
<BODY BACKGROUND="image.jpg" BGCOLOR="#FFc0c0" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF" ALINK="#FF0000">
<!-- following code added by server. PLEASE REMOVE -->
<!-- preceding code added by server. PLEASE REMOVE -->
<a href="CResume.html" class=navbuttons">Resume</a>
<a><img src="boss.jpg" width="75" height="100" border="0"></a>


<a href="CaverBlog.html" class=navbuttons">Blog</a>
<a><img src="mo.jpg" width="75" height="100" border="0"></a>

<a href="AngelaOrderForm.html" class=navbuttons">Order Form</a>
<a><img src="howdy.jpg" width="75" height="100" border="0"></a>

</h2>
</div>

<div class="content">
<div align="center">
<table border ="" cellpadding="3" cellspacing="5" " bgcolor="#CCCCFF">
<tr>
<td align="left"><label for="fname">First Name</label></td>
<td><input type="text" name="fname" id="fname" size="15" value=" "></td>
</tr>
<tr>
<td align="left"><label for="lname">Last Name</label></td>
<td><input type="text" name="lname" id="lname" size="15" value=" "></td>
<tr>
<td align="left"><label for="ename">E-Mail Address</label></td>
<td><input type="text" name="ename" id="E-Mail Address" size="15" value=" "></td>
</tr>
<td align="left"><label for="bname">Birthdate (mm/dd/yy):</label></td>
<td><input type="text" name="bname" id="Birthdate" size="15" value=" "></td>

<tr>
<td align="left"><label for="cname">Company Name</label></td>
<td><input type="text" name="cname" id="Company Name" size="15" value=" "></td>
</tr>
<tr>
<td align="left"><label for="phone">Daytime Phone</label></td>
<td><input type="text" name="phone" id="Phone" size="15" value=" "></td>
</tr>
<tr>
<td align="left"><label for="add">Street Address</label></td>
<td><input type="text" name="add" id="add" size="15" value=" "></td>
</tr>
</td>
<tr>
<td align="left"><label for="city">City</label></td>
<td><input type="text" name="city" id="city" size="15" value=" "></td>
</tr>
</td>
<tr>

<td align="left"><label for="state">State</label></td>
<td><select size="1" name="state" id="state" value=""><optionvalue=""></optionvalue=""</option>

<Option Value="IL">Missouri </Option>

<Option Value="IL">Illinois </Option></select></td>


</tr>
<tr>
<td align="left"></label for "zip">Zip Code</label></td>
<td><input type="text" name="zip" id="zip" size="10" value= ""></td>
</tr>
<tr>
<td colspan="2" align="center"> <p>Choose the adjective that best describes your desired site:</p>
<input type="checkbox" name=siteadj_1 "value="edjy" id=siteadj_1>Edgy
<input type="checkbox" name=siteadj_2 "value="conservative" id=siteadj_1>Conservative
<input type="checkbox" name=siteadj_3 "value="professional" id=siteadj_1>Professional
<input type="checkbox" name=siteadj_4 "value="friendly" id=siteadj_1>Friendly
<input type="checkbox" name=siteadj_5 "value="warm" id=siteadj_1>Warm
<input type="checkbox" name=siteadj_6 "value="futuristic" id=siteadj_1>Futuristic
<input type="checkbox" name=siteadj_7 "value="nostalgic" id=siteadj_1>Nostalgic
<input type="checkbox" name=siteadj_8 "value="other" id=siteadj_1>other
</td>
</tr>
<tr>
<td colspan="2" align="center">Describe the target audience for the site:<br />
<textarea name="sitedesc" rows="10" cols="30" id="sitedesc"></textarea>
</tr>

<tr>
<td colspan="2" align="center">
<p>Credit Card Type</p>
<input type="radio" name="credit" id="visa" value="visa">Visa
<input type="radio" name="credit" id="discov" value="discov">Discover
<input type="radio" name="credit" id="masterc" value="masterc">MasterCard<br />
<input type="radio" name="credit" id="americanE" value="amerie">American Express<br />
Credit Card Expiration Month:
<select size="1" name="expm" id="expm" value="">
<Option value="Jan">January </Option>
<Option value="FEB">February </Option>
<Option value="MAR">March </Option>
<Option value="APR">April </Option>
<Option value="MAY">May </Option>
<Option value="JUN">June </Option>
<Option value="JUL">July </Option>
<Option value="AUG">August </Option>
<Option value="SEP">September</Option>
<Option value="OCT">October </Option>
<Option value="NOV">November </Option>
<Option value="DEC">December </Option>
</select>
<br />
Credit Card Expiration Year:

<select size="1" name="expyr" id="expyr" value="" >
<Option value="05">2005 </Option>
<Option value="06">2006 </Option>
<Option value="07">2007 </Option>
<Option value="08">2008 </Option>
<Option value="09">2009 </Option>
<Option value="10">2010 </Option>
</select>

<form onSubmit="return checkrequired"Last Name")>
<input type=button value="Submit" onClick="verify(Last Name);">
</form>
</html>
















Any help is appreciated! Thanks Angela
April 27,

This topic is archived.

See also:


Back to support forum