13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Implementing User Authentication<br />

589<br />

Figure 27.7<br />

The change_passwd_form.php script supplies a form where<br />

users can change their passwords.<br />

This form is generated by the script change_passwd_form.php.This simple script just<br />

uses the functions from the output library, so we did not include the source for it here.<br />

When this form is submitted, it triggers the change_passwd.php script, which is<br />

shown in Listing 27.15.<br />

Listing 27.15<br />

change_passwd.php—This Script Changes a User Password<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!