> 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
> 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."F
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."Fi
3 matches
Mail list logo