Page 1 of 1

aligning message responses

Posted: Wed Mar 26, 2003 4:20 am
by jarow
How can I write the following so that the message 'Passwords did not match.' appears in the center of the page and not to the left (default)

}

// check passwords match

if ($_POST['passwd'] != $_POST['passwd_again']) {
die('Passwords did not match.');
}

Thanks

Posted: Wed Mar 26, 2003 4:24 am
by twigletmac
HTML solution:

Code: Select all

die('<p align="center">Passwords did not match.</p>');
HTML + CSS solution:

Code: Select all

die('<p style="text-align: center;">Passwords did not match.</p>');
Mac

Posted: Fri Mar 28, 2003 4:08 am
by jarow
Thanks very much....works like a charm!