If you are wanting to do it on the client side you will need to do it in javascript, not in PHP.
If you just want to make a confirmation screen in PHP you just present an intermediate screen between the requested action and completing that action. An example would be: 1. Administrator clicks delete user link that is a GET query string 2. PHP application creates a page with 2 links or form buttons, Yes or No 3. PHP application takes action as a result of the choice taken for example <a href="admin.php?action=deluser&userid=1&confirm=t">Yes</a> <a href="admin.php?action=deluser&userid=1&confirm=f">No</a> Jason On Sat, 2002-11-30 at 11:22, Lars Espelid wrote: > Hello, > > Working in php, the problem is how to create a window with some optional > text in it and get true or false in return. A confirmation window. > > Example in javascript: > > function formSubmit() { > window.event.returnValue = false; > if (confirm("Er du sikker på at du vil slette boenheten?")) > window.event.returnValue = true; > } > > > regards > lars > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php