I want to check on exactly how this should be done.
I have a program and I wish to check as to whether it is being done correctly. Baically I have the following in the page: <script language="JavaScript" type="text/javascript"> function validateFields() { if (document.virtucalconsultation.vctitle.value == "") { alert('Please enter your title!'); document.virtucalconsultation.vctitle.focus(); return false; } return true; } </script> Also on the page I have <form name="virtucalconsultation" action="virtual-consultation_include1.cfm" method="post" onsubmit="return validateFields(this);"> <input type="hidden" name="vctitle_required" value="Your title is required - please enter your title"> And then I have: <tr> <td width="50%" class="subHeader" align="right"><div style="margin: 10px;">Title</div></td> <td width="50%"><div style="margin: 10px;"> <input class="searchform" type="text" name="vctitle" width="10" maxlength="25" message="Title must be entered" validateat="onsubmit"> </div></td> </tr> Would appreciate any feedback I can show the program if required. Thanks in advance. P ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276519 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4