[PHP] php-java formatting

2002-12-23 Thread Edward Peloke
Hello all, I am using a javascript alert box in one of my php pages to tell the user they didn't fill out all the required fields. As I check each field, if it is blank I am adding to the alert string: $alertstring=Missing Mandatory Fields; if ($fname==''){

Re: [PHP] php-java formatting

2002-12-23 Thread 1LT John W. Holmes
I am using a javascript alert box in one of my php pages to tell the user they didn't fill out all the required fields. As I check each field, if it is blank I am adding to the alert string: $alertstring=Missing Mandatory Fields; if ($fname==''){ $alertstring=$alertstring.First

Re: [PHP] php-java formatting

2002-12-23 Thread Krzysztof Dziekiewicz
This all works fine except I want each empty field of the alert box to be on it's own line. I try adding \n to the lines of the alert string but it prints out the \n. How can I format this string so that it shows correctly in the alert box? Just you use '\n' but you have to do something