|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to Confirm Delete in php without JavaScript?
You know the usual... user logs into their account, clicks on 'delete somethingorother', message pops up "Are you sure you want to delete?" then delete upon confirmation.
Only I'm trying not to use Javascript now and I can't think of a very neat way of doing the same thing...
__________________
im lve web designing |
|
#2
|
||||
|
||||
|
The only way I can think of is to use a page between the user clicking delete and the record being deleted. Eg
User clicks delete -> Are you sure page shown -> if yes, record(s) deleted... But why not use Javascript? Fewer and fewer browsers do not support it
__________________
Ubuntu User #13389 |
|
#3
|
|||
|
|||
|
ok, can u give me sample of the code if its ok...
|
|
#4
|
||||
|
||||
|
A sample of the code would just be having the form post to a page which has 2 links, 1 saying yes (which then passes on the data from the original form), 2 saying no which returns back to the webpage. To get the data from the original form just use $_POST or $_GET (don't forget about SQL injection attack prevention).
Nothing too hard |
|
#5
|
|||
|
|||
|
How to execute a Rss feed in Wordpress?
I want to execute rss of main site on my affilate sites which are made up in Wordpress.
How can i do this? JImmy |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Applications > How to Confirm Delete in php without JavaScript? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|