[PHP] alert function

2004-11-14 Thread Mathieu Morin
In html, there is the alert() function that makes a popup with a ok button. Is there such a thing in php? example: if ($lastname == ) { print brbrcenterfont face=arial color=redEnter a name!/font/center; } but that changes my page setup. -- PHP General Mailing List

Re: [PHP] alert function

2004-11-14 Thread Larry E . Ullman
In html, there is the alert() function that makes a popup with a ok button. Is there such a thing in php? Actually, that's a JavaScript function. You can't do the same thing in PHP although you can use PHP to create the JavaScript. Printing an error message, like you already had, is probably a