close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Client VAlidation

Thread began 11/02/2010 5:22 pm by nickj | Last modified 11/16/2010 10:25 am by nickj | 922 views | 4 replies


In this form the validation fails on either choice.

<form method="post" name="WAATKRegistrationForm" id="WAATKRegistrationForm" onSubmit="WAValidateRQ(document.WAATKRegistrationForm.first_usr,'First Name - Entry is required',document.WAATKRegistrationForm.first_usr,0,false,'text');WAValidateRQ(document.WAATKRegistrationForm.last_usr,'Last name - Entry is required',document.WAATKRegistrationForm.last_usr,0,false,'text');WAValidateRQ(document.WAATKRegistrationForm.email_usr,'E-mail/ Username - Entry is required',document.WAATKRegistrationForm.email_usr,0,false,'text');WAValidateEM(document.getElementById('WAATKRegistrationForm').email_usr,document.getElementById('WAATKRegistrationForm').email_usr.value,' Invalid email address',document.getElementById('WAATKRegistrationForm').email_usr,0,true);WAValidateRQ(document.WAATKRegistrationForm.password_usr,'Password - Entry is required',document.WAATKRegistrationForm.password_usr,0,false,'password');WAValidateRQ(document.WAATKRegistrationForm.terms_usr,'Agreement with the Terms & Conditions - Entry is required',document.WAATKRegistrationForm.terms_usr,0,true,'checkbox');WAValidateRQ(document.WAATKRegistrationForm.memb_typ_usr,'Membership Level - Entry is required',false,0,true,'radiogroup');WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,document.getElementById('false'),false);return document.MM_returnValue">
<h3><span class="orange">On step 1.)</span> Individual Registration</h3>
<table border="0" cellpadding="0" cellspacing="0" class="WAATKDataTable">
<th colspan="2">First<span class="Required">*</span>
<input type="text" class="WAATKTextField" name="first_usr" id="first_usr" value="" size="12" />
<input type="text" class="WAATKTextField" name="middle_usr" id="middle_usr" value="" size="3" />
Last<span class="Required">*</span> <input type="text" class="WAATKTextField" name="last_usr" id="last_usr" value="" size="12" /> </th>
<th valign="top">E-mail<span class="Required">*</span></th>
<td><p><span class="Required">
<?php if ($totalRows_rsUsed > 0) { // Show if recordset not empty ?>
The email address you entered in use. <br>
Please use a different email address
<?php } // Show if recordset not empty ?>
<input type="text" class="WAATKTextField" name="email_usr" id="email_usr" value="" size="32" />
<th>Password<span class="Required">*</span></th>
<td><input name="password_usr" type="password" class="WAATKTextField" id="password_usr" value="" size="10" ></td>
<th valign="top">Membership type<span class="Required">*</span></th>
<td><input type="radio" name="memb_typ_usr" id="memb_typ_usr" value="1" />
<strong>Level IM-1: $12</strong> <br>
<input type="radio" name="memb_typ_usr" id="memb_typ_usr" value="2" />
<strong>Level IM-2: $16</strong></td>
<th>Benificiary<span class="Required">*</span></th>
<td><label for="benifitCode_usr"></label>
<select name="benifitCode_usr" id="benifitCode_usr">
<option value="">Select One</option>
do {
<option value="<?php echo $row_rsNon_profit['id_usr']?>"><?php echo $row_rsNon_profit['company_usr']?></option>
} while ($row_rsNon_profit = mysql_fetch_assoc($rsNon_profit));
$rows = mysql_num_rows($rsNon_profit);
if($rows > 0) {
mysql_data_seek($rsNon_profit, 0);
$row_rsNon_profit = mysql_fetch_assoc($rsNon_profit);
<td><input type="checkbox" name="no_contact_usr" id="no_contact_usr" value="1" />
Please do not email me with feature updates.</td>
<th valign="top">Terms<span class="Required">*</span></th>
<td>Important! Please<a href="#" onClick="MM_openBrWindow('../library/terms_conditions.php','','scrollbars=yes,resizable=yes,width=500,height=500')"> click this link and read the Terms and Conditions</a><br>
<input type="checkbox" name="terms_usr" id="terms_usr" value="1" />
I agree to the terms and conditions</td>
<th><input name="MM_insert" type="hidden" id="MM_insert" value="MM_insert">
<input type="hidden" name="cdate_usr" id="cdate_usr" value="<?php echo date("Y-m-d H:i:s"); ?>" >
<input type="hidden" name="active_date_usr" id="active_date_usr" value="0" />
<input name="access_usr" type="hidden" id="access_usr" value="1"></th>
<td><span class="WAATKButtonRow">
<input type="Submit" name="Register" id="Register" value="Register">

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...