-1

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

<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">&nbsp;</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">&nbsp;</td>
                  <td height="40" align="left"><input type="submit" name="Submit" value="Register" class="txtBox"></td>
                </tr>
              </table>
            </form>

Edited by peter_budo: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)

Attachments
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Atli
1

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.

Edited by pritaeas: fixed formatting

Votes + Comments
100% Correct :)
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.