Hi,
I'm trying to confirm a Delete action that will remove data from a database. The code is pure php, no jscript etc as I want everything to be server side.
My php file shows a form with the current data found for a venue with 1 or more 'rooms' in it. There are two dB tables, one for venues, one for rooms.
The form has submit buttons to reload the form and I then evaluate the $_POST data to take the relevant action ppprior to echoing the HTML page code out.
One possible action is to add a new room to a venue, that btn works fine.
I now want to add a btn to allow the deletion of a room from a venue. I can do this in a one lick action OK, put I want to add a warning/confirm popup such as:
This action is not reversable - are you sure?
then if the user clicks yes, the php code continues, the row in the room table is deleted and the dB is -searched to show the current data in the form.
Any help on how to get a popup to show before I echo the html code such as..
echo " <!DOCTYPE HTML PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>";
echo " <html xmlns='http://www.w3.org/1999/xhtml'>";
echo " <head>";....
Thanks in anticipation..