Change Password Function with MySQL/PHP/JQuery

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:


[/php]

Thanks!

From there, do any validation that’s necessary, then if that’s ok, run your update query.

Sponsor our Newsletter | Privacy Policy | Terms of Service