how to update edit and delete data on same form
abhijit_2
0
Newbie Poster
Recommended Answers
Jump to PostUse select:
<select name="action"> <option>update</option> <option>delete</option> </select>
Then:
if($_POST['action'] == 'update') { # run update query } elseif($_POST['action'] == 'delete') { # run delete query } else { # return error: no allowed action was selected }
If, instead, you want to …
All 3 Replies
Reply to this topic
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.