This question already has an answer here:
I am new to PHP. I have to display a message box asking if new record is required or we can copy and modify an old record to the user while adding a new record. How can I do this? Please help.
</div>
I usually use this for messageboxes:
function alert($string)
{
echo '<script type="text/javascript">alert("' . $string . '");</script>';
}
Not the cleanest method, but usually works without problems.