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
  • 143,113
  • 25
  • 227
  • 253
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,913
  • 2
  • 21
  • 45