> I added the hidden field like so because I couldn't get "htmlentities"
to
> work:
>
>
Just hope that no one submits a $area_todelete with an " in it,
otherwise they will be able to inject any kind of HTML/Javascript/etc
they want into the resulting page.
---John Holmes...
--
PHP General
Jay Blanchard wrote:
< One of two ways, an intermediary PHP page that asks "Are you sure?" while
< carrying the information forward, or a JavaScript pop-up confirmation
dialog
< box.
< HTH!
< Jay
< And John Holmes wrote:
< Just create a middle page that stores the value of $area_todelete in a
Just create a middle page that stores the value of $area_todelete in a
hidden field.
You "YES" button would submit it to the delete code you already have,
the "NO" confirmation button would send the user somewhere else, maybe
back to the choose area page.
I hope that's not too confusing.
---
[snip]
The way the code is written, the record gets deleted immediately upon
clicking the submit button on page one. Is there some way I can keep the
script on page two from executing until after I press the confirmation
button?
[/snip]
One of two ways, an intermediary PHP page that asks "Are yo
4 matches
Mail list logo