RE: [PHP] Confirm a Deletion

2002-10-01 Thread John W. Holmes
> 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

RE: [PHP] Confirm a Deletion

2002-10-01 Thread Roger Lewis
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

RE: [PHP] Confirm a Deletion

2002-10-01 Thread John W. Holmes
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. ---

RE: [PHP] Confirm a Deletion

2002-10-01 Thread Jay Blanchard
[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