Anyone knows how to code in this:
when i delete a particular record,it display first " Are you sure, you want to delete?<br>Yes, No"
all i know is in Vb but i dont know in php..i know if-else statement are present in that code..tnx in advance!
takeshi 0 Junior Poster in Training
Recommended Answers
Jump to PostYou'd be better off with js - or ajax.
You need the js 'confirm' popup. This can be linked 'ajaxibly' to a php file which could delete file/db record, whatever, in the background and then refresh your displayed list of records/files - all without the need for whole page …
Jump to Postso what's the code for that?
For what? Which bit?
Jump to PostI always get a bit twitchy when people use simple get vars for database manipulations. This is open to abuse (yeah, yeah, so is post, I know). If you use get, I'd suggest using a confirm hash to go with the id of the record to delete.
e.g. deleterecord.php?id=3&confirm=syhnY729H6jYu27R5gjuU81b …
All 9 Replies
amd_k8 1 Light Poster

diafol
takeshi 0 Junior Poster in Training

diafol
takeshi 0 Junior Poster in Training
praveen_dusari 11 Posting Whiz in Training
vaultdweller123 32 Posting Pro

diafol
vaultdweller123 32 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.