This topic is locked

Js pop up

8/15/2006 11:42:22 AM
PHPRunner General questions
A
amirgulamali author

Hi,
I am displaying a message on my page as a warning message if a specific record exists in the database, but the warning message is a simple echo which displays the message at the very top of the page. (even before the banner for my website) I would like to change the warning message to a java alert pop up instead (like the ones appearing when field validation fails or when required fields are not filled)
Any help would be appreciated... thanks

Alexey admin 8/16/2006

Amir,
here is the code snippet you can put into the event to display javascript popup.

?>

<script language=javascript>

alert('Warning!');

</script>

<?php