Hello, I would like some help making a change password function for PHP/MySQL/JQuery.
I have started it off a bit but have no idea where to go from here, some help would be very appreciated.
Here it is so far:
[php]else if($_POST[‘submit’]==‘Confirm’)
{
$err = array();
if(!$_POST['password2'] || !$_POST['password3'] || !$_POST['password4'])
$err[] = 'All fields are required.';
if(count($err))
{
$_SESSION['msg']['reg-err'] = implode('<br />',$err);
}
header("Location: http://127.0.0.1/");
exit;
}
$script = ‘’;[/php]
Form is:
[php]
Your Account Settings
<?php
echo ‘
Change Password
’?>
Existing Password:
New Password:
Confirm New Password:
Thanks!