2

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.

hek2mgl
  • 152,036
  • 28
  • 249
  • 266
user3678823
  • 35
  • 1
  • 1
  • 5

1 Answers1

3

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.

Realitätsverlust
  • 3,941
  • 2
  • 22
  • 46