Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Wed Jul 17, 2013 7:45 pm

1).write a form to collect both the passwords

2).at the place where you process these passwords (you will have to collect the two passwords from the form), do something like this:

Code: Select all

$password = $_POST['password'];
$retypedpassword = $_POST['retypepassword'];

if ($password === $retypedpassword)
    echo "The passwords match";
    echo "The passwords do not match";

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests