Bad Credit Personal Loans - Deaf Topics - Computer Jobs - Deaf Topics - Find jobs

PDA

View Full Version : php die() message formatting


jacka
Mar 22nd 2007, 3:22 am
Hi

I am trying to format the text in php inside die() where it says...
if (!isset($_POST['pn']) || trim($_POST['pn']) == '' ) {

die(" Please enter a valid part number!");
}....


All I want to do it to format the text inside the die(..) to a different colour.
Can any one help me please?
I have searched alot on google and afew forums but don't seems to find a solution to my small problem.

Thanking you in advance.
Jacka

nico_swd
Mar 22nd 2007, 3:25 am
Just use HTML.


die('<span style="color: #xxxxxx;">Please enter a valid part number!</span>');

jacka
Mar 22nd 2007, 3:37 am
wowwww
Worked a treat many thanks.