In JavaScript there is a function "alert();" which displays a message in a dialog window. What is the equivalent in PHP?
well php is a server side scripting language, so i dont think there is anything that would produce an alert on the client side. Why not just use javascript in your php page?
if you really are insistant on trying to use php to do this then this works
function show_errors($error) { print "<script>"; print "alert('$error');"; print "</script>"; }
then just call it like this
show_error("txt here");
HTH
GM
another wee hint
put the output at the very bottom of your page or the page will stop loading while it waits for the user to respond. Don't worry about having it as an onload, just put it at the end.