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==''){
$alertstring=$alertstring."First Name";
}
............etc
I am then out putting the code with prints.
<? Print "<script> alert('$alertstring') </script>";
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?
Thanks,
Eddie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php