Reply
cfm html java ???
Old 10-12-2004, 10:30 AM cfm html java ???
Junior Talker

Posts: 1
can some one please enlighten me on why i cant seem to get this to work whether its wrong code or am i forgetting something..i have taken out the personal information for certain purposes but am wondering why isnt it telling me to check the empty fields when i submit the form like i want it to. i dont want it to pass the client thru to the next link if the short form isnt filled out...please can ya help

<script>

/*

*/
function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.name.substring(0,8)=="required"){
if (((tempobj.type=="text"||tempobj.type=="textarea") &&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){
pass=false
break
}
}
}
}
if (!pass){
alert("One or more of the required elements are not completed. Please complete them, then submit again!")
return false
}
else
return true
}
</script>
<!--webbot
bot="HTMLMarkup" endspan --></font></p>
<div align="center">
<table width="508" border="0" align="center">
<FORM ACTION="interbd.cfm" onsubmit="return checkrequired(this)" METHOD="POST">
<p>&nbsp;</p>
<strong>
<input type="hidden" name="recipient" value="info@…….com">
<input type="hidden" name="subject" value="partners Website Response
Form">
<input type="hidden" name="location" value="http://www……..com/……..html">



</strong>

<tr bgcolor="#FFFFFF">
<td colspan="2"> <div align="right"><span style="background-color: #FFFFFF"><font color="#333366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>First
Name </strong></font></span></div></td>
<td> <div align="left"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="FirstName" type="text" id="FirstName" size="35" maxlength="100">


</font></strong></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"> <div align="right"><span style="background-color: #FFFFFF"><font color="#333366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Last
Name </strong></font></span></div></td>
<td> <div align="left"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="LastName" type="text" id="LastName" size="35" maxlength="100">


</font></strong></div></td>
</tr>




<tr bgcolor="#FFFFFF">
<td colspan="2"> <div align="right"><span style="background-color: #FFFFFF"><font color="#333366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Email</strong></font></span></div></td>
<td> <div align="left"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="Email" type="text" id="Email" size="35" maxlength="100">


</font></strong></div></td>
</tr>




<tr bgcolor="#FFFFFF">
<td align="center" valign="top"><font color="#400080" size="+4" face="Agency FB">
<input type="reset" name="Submit2" value="Reset Form">


</font></td>

<td align="center" valign="top"><font color="#400080" size="+4" face="Agency FB">
<input name="submit" type="submit" id="submit2" value="Submit to MS">


</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="134" height="85" align="center" valign="top"><span style="background-color: #FFFFFF"><font color="#333366" size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;
</font></span></td>
<td width="141" align="center" valign="top"><span style="background-color: #FFFFFF"><font color="#333366" size="+4" face="Agency FB">&nbsp;
</font></span></td>
</tr>
</form>
</table>
<p style="margin-bottom: 0;">&nbsp;</p>
</div></td>
</tr>
</table>
chenz is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Reply     « Reply to cfm html java ???
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 10.11638 seconds with 12 queries