Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php confirm box

If you want to do this only in PHP, you will need to add "steps" in your script, like:

step1 (show form) -> step2 (ask validation) -> step3 (validate)
To do so, you can use sessions to keep form content, and GET parameter to track the step. Otherwise the simplest solution is to use javascript:

echo "<td><a onClick="javascript: return confirm('Please confirm deletion');" href='delete.php?id=".$query2['id']."'>x</a></td><tr>"; //use double quotes for js inside php!
Comment

PREVIOUS NEXT
Code Example
Php :: lumen generate app key 
Php :: php compare two versions return true or false if version is big 
Php :: password strength php 
Php :: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65015808 bytes) 
Php :: random string php 
Php :: laravel RuntimeException Session store not set on request. 
Php :: php mysql get last inserted id 
Php :: laravel check record exists 
Php :: To store data in the session Laravel 
Php :: php shell script 
Php :: how to create a logfile in php? 
Php :: php get text from html 
Php :: update pdo mysql php 
Php :: search on taxonomy wordpress query 
Php :: how to pass id through get template part 
Php :: laravel sort by numbers 
Php :: php get total amount of days in month 
Php :: PHP Startup: Unable to load dynamic library 
Php :: get html file data to variable in php 
Php :: add shortcode in short description 
Php :: how to separate integer from string in php 
Php :: time to string in php 
Php :: how to add attributes to an exsisting object in php 
Php :: laravel get route in unauthenticated 
Php :: wordpress plugin add stylesheet 
Php :: count words in string php 
Php :: laravel redirect back with errors and input 
Php :: laravel require vendor autoload 
Php :: php file put content 
Php :: set timezone in php 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =