Jump to content

Problem with my registration form


Lukey

Recommended Posts

Hi ive created a registration form that has various input text boxes including a "password" and a "verify password" one.

 

My issue is that when it comes to checking the two password boxes are matching.

At first i thought it was my syntax etc. but i've narrowed it down to the fact that my code isnt picking up the first password text box at all.

 

Example:

 

//variables for entered data
$firstname = $_POST["fname"];
$secondname = $_POST["sname"];
$housenumber = $_POST["hnumber"];
$streetname = $_POST["streetname"];
$townname = $_POST["townname"];
$countyname = $_POST["countyname"];
$country = $_POST["countryname"];
$email = $_POST["emailaddress"];
$phoneno = $_POST["phonenum"];
$username = $_POST["Rusername"];

$pass = $_POST["pword"];
$vpassword = $_POST["vpword"];

...

//testing variable output
echo($pass);
echo($vpassword);

 

$vpassword displays but $pass does not so im sure its not picking up this information.

 

I have checked that i got the correct names etc numerous times now.  Im sure the answer is probably staring me in the face.

 

Any help would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/52683-problem-with-my-registration-form/
Share on other sites

sure thing.

 

   <td><div align="left">
      <input type="password" name="pword" size="20" maxlength="20" value=""/><br/>
      <font size=-2><i>Note: Password must be a minimum of 6 characters</i></font>
      </div>
    </td>
  </tr>
  <tr>
    <!-- Row 12 Column 1 -->
    <td><div align="right">
      Verify Password:
      </div>
    </td>
    <!-- Row 12 Column 2 -->
    <td><div align="left">
     <input type="password" name="vpword" size="20" maxlength="20" value=""/>
     
     </div>
     
    </td>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.