Jump to content

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>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.