| | |
Help me in form validation
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2009
Posts: 8
Reputation:
Solved Threads: 0
Hai 2 all
I have a small correction at password:
now invalid charcters also taken in form plz modify prog
if u enter ivalid charcters like~!@#
tis type it show an error msg invali charcters display it one plz
HTML CODE
I have a small correction at password:
now invalid charcters also taken in form plz modify prog
if u enter ivalid charcters like~!@#
tis type it show an error msg invali charcters display it one plz
HTML CODE
php Syntax (Toggle Plain Text)
<html> <head> <title>Registration</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.metadata.js"></script> <script type="text/javascript" src="js/jquery.validate.js"></script> <script type="text/javascript" src="js/validate.js"></script> <form action="keystone_Register.php" method="post" name="regForm" id="regForm" > <table width="778" border="0" align="center" cellpadding="0" cellspacing="1" > <tr> <td height="25" colspan="2"><span class="black"><font color="#FF0000">(*Mandatory Fields) </font></span></td> </tr> <tr> <td height="30" colspan="2" class="tableheader11r">Personal Information </td> </tr> <tr> <td height="30" class="required">First Name:<span class="black"><font color="#FF0000">* </font></span></td> <td height="30" class="required"><input name="f_name" type="text" id="f_name" value=""class="txtBox" ><br><div class="redtxt" id="fname"></div></td> <td class="required">Middle Name:<alt="not mentioned" span class="black"><font color="#FF0000"><alt=""> </font></span></td> <td height="" class="required"><input name="m_name" type="text" id="m_name" value=""class="txtBox" ><br><div class="redtxt" id="mname"></div></td> </tr> </tr> <tr> <td height="30" class="required">Last Name:<span class="black"><font color="#FF0000">* </font></span></td> <td height="30" class="required"><input name="l_name" type="text" id="l_name" value="" class="txtBox"><br><div class="redtxt" id="lname"></div></td> </tr> <tr> <td>Email Id<span class="required"><font color="#CC0000">*</font></span> </td> <td><input name="usr_email" type="text" id="usr_email3" class="required email"> <span class="example">(eg:abc@xyz.com)</span></td> </tr> <tr> <td>Password<span class="required"><font color="#CC0000">*</font></span> </td> <td><input name="pwd" type="password" class="required password" minlength="8" id="pwd"> <span class="example"><br>(Minimum 8 characters)</span></td> </tr> <tr> <td>Retype Password<span class="required"><font color="#CC0000">*</font></span> </td> <td><input name="pwd2" id="pwd2" class="required password" type="password" minlength="8" equalto="#pwd"></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td height="30" class="required">Area of Interest:<span class="black"><font color="#FF0000"> </font></span></td> <td height="30" class="required"> <select name="areaofinterest"> <?php if ($myrow["areaofinterest"]=="ePublishing") { ?> <option value="ePublishing" selected>ePublishing</option> <option value="Retail">Retail</option> <option value="Other">Other</option> <?php } ?> <?php if ($myrow["areaofinterest"]=="Retail") { ?> <option value="ePublishing">ePublishing</option> <option value="Retail" selected>Retail</option> <option value="Other" >Other</option> <?php } ?> <?php if ($myrow["areaofinterest"]=="Other") { ?> <option value="ePublishing">ePublishing</option> <option value="Retail">Retail</option> <option value="Other" selected >Other</option> <?php } ?> <?php if ($myrow["areaofinterest"]=="") { ?> <option value="" selected >Select</option> <option value="ePublishing">ePublishing</option> <option value="Retail">Retail</option> <option value="Other" >Other</option> <?php } ?> </select><br><div class="redtxt" id="interest"></div> </td> </tr> <tr> <td height="30" class="required">Comments:<span class="black"></span></td> <td height="30" class="required"><textarea name="comments" id="comments" class="txtBox"></textarea><div class="redtxt" id="res"></div></td> </tr> </tr> <tr> <td> <p> <input name="send" type="checkbox" id="send" value="1" checked>Recive email/promotional news or other imporatant news </p></td></tr> <tr align="center"> <td height="40"> </td> <td height="40" align="left"><input type="submit" name="Submit" value="Register" class="txtBox"></td> </tr> </table> </form>
Last edited by peter_budo; Oct 22nd, 2009 at 2:43 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)
1
#2 Oct 21st, 2009
Hey.
First of all, you need to Validate Your HTML. It is all mest up. You don't even have a body tag, and a bunch or random attributes that mean nothing.
Please fix this first, then post your code back. (Within [code] tags, please)
Also, from what I understand of your question, you are asking for help modifying password validation? (Correct me if I am wrong please.)
None of that code is on this page. It seems to be both in those JavaScript files you include, and/or in the PHP file your <form> targets. Please post that code as well if you want us to help you with it.
If I am completely misunderstanding you, please elaborate.
First of all, you need to Validate Your HTML. It is all mest up. You don't even have a body tag, and a bunch or random attributes that mean nothing.
Please fix this first, then post your code back. (Within [code] tags, please)
Also, from what I understand of your question, you are asking for help modifying password validation? (Correct me if I am wrong please.)
None of that code is on this page. It seems to be both in those JavaScript files you include, and/or in the PHP file your <form> targets. Please post that code as well if you want us to help you with it.
If I am completely misunderstanding you, please elaborate.
Please do not ask for help in a PM. Use the forums.
And use [code] tags!
And use [code] tags!
![]() |
Similar Threads
- PHP Form Validation ??? (PHP)
- sample code for form validation using ajax (JavaScript / DHTML / AJAX)
- javascript Form Validation Libraries (JavaScript / DHTML / AJAX)
- PHP Mail Form Validation - Help Please? (PHP)
- coldfusion form validation question (ColdFusion)
- Really Stuck - ASP/Javascript Form Validation (ASP)
- Dreamweaver php form validation and redirect (PHP)
- Help on form validation requested. (PHP)
- uregnt need of form validation (JSP)
Other Threads in the PHP Forum
- Previous Thread: display random images from folder
- Next Thread: Print sentences from a textarea ? how
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail match menu mlm mod_rewrite multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion regex remote script search server sessions sms smtp soap source space sql strip_tags survey syntax system table tutorial undefined update upload url validation validator variable video virus web window.onbeforeunload=closeme; xml youtube





