aligning message responses

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jarow
Forum Commoner
Posts: 83
Joined: Tue Jan 28, 2003 2:58 am

aligning message responses

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
jarow
Forum Commoner
Posts: 83
Joined: Tue Jan 28, 2003 2:58 am

Post by jarow »

Thanks very much....works like a charm!
Post Reply