PHP Confirm Prompt?
Moderator: General Moderators
PHP Confirm Prompt?
I know confirm boxes are a "client side" action, but I'm looking for a way to echo a confirmation prior to updating or deleting a record?
Basically, it's an if statment, where I can to have conditions which require user input.
Anyone know how I can acomplish this?
Basically, it's an if statment, where I can to have conditions which require user input.
Anyone know how I can acomplish this?
I output HTML when a condition is true.
I have a form, say: form.php whichs posts to a process.php
In process php, I take a condition and prompt with html, "do you want to delete this record?"
But I'm not sure how to take that input and continue with my function to execute an SQL statement.
I hope that makes sense. I think I'm confusing myself!
I have a form, say: form.php whichs posts to a process.php
In process php, I take a condition and prompt with html, "do you want to delete this record?"
But I'm not sure how to take that input and continue with my function to execute an SQL statement.
I hope that makes sense. I think I'm confusing myself!
-
Phoenixheart
- Forum Contributor
- Posts: 123
- Joined: Tue Nov 16, 2004 7:46 am
- Contact:
I prefer scripting a javascript funtion like this

Code: Select all
if(confirm("Do you want to delete?")) //do delete-
Phoenixheart
- Forum Contributor
- Posts: 123
- Joined: Tue Nov 16, 2004 7:46 am
- Contact: