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
aligning message responses
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
HTML solution:
HTML + CSS solution:
Mac
Code: Select all
die('<p align="center">Passwords did not match.</p>');Code: Select all
die('<p style="text-align: center;">Passwords did not match.</p>');