CavemanUK Posted May 25, 2008 Share Posted May 25, 2008 Hi, Im still very new to php.. i was wondering how i would go about the following.. i have a table with records pulled from a mysql database like so.... name address phone number [/td] [td]John Smith 123 sdkfsdfh 2342342342 (e) (x) Bob Jones 45 dsfjjhsdf skj ksdjl skljd (e) (x) the (e) and (x) are just images and i wanted to make them clickable so i can delete or edit records. I have done the edit already which simply hrefs a "edit" page but for the delete i wanted it to pop up a quick "are you sure" window and then just send the query to the database.. so my question is this.. if i make a function for doing this in php, how do i code the "(x)" to link to it and call it? on a side note, is it possible to do "are you sure?" pop-ups too? Thanks Link to comment https://forums.phpfreaks.com/topic/107171-ways-to-handle-events-in-php/ Share on other sites More sharing options...
Barand Posted May 25, 2008 Share Posted May 25, 2008 if i make a function for doing this in php, how do i code the "(x)" to link to it and call it? It would have to be javascript if (confirm("Are your sure?")) ... Link to comment https://forums.phpfreaks.com/topic/107171-ways-to-handle-events-in-php/#findComment-549482 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.