HakonHoy Posted March 12, 2006 Share Posted March 12, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<A HREF='edit_other.asp?id=" & rs("ID") & "&mode=delete' " & "onClick=" & MyQuote & "return confirm('Are you sure you want to delete this news ?');" & MyQuote & "><font face='verdana, arial, helvetica' size='1' color='#014A65'>Delete</font></A> [/quote]I got this code in ASP.. what I need is to have it in php.. what i'm actually most interested in is the return confirm thing.. is there a code for such a thing in php, if yes, can anyone please tell me what it is, I have been looking all over for it... Quote Link to comment https://forums.phpfreaks.com/topic/4772-confirm-message/ Share on other sites More sharing options...
keeB Posted March 12, 2006 Share Posted March 12, 2006 [!--quoteo(post=354261:date=Mar 12 2006, 07:26 PM:name=HakonHoy)--][div class=\'quotetop\']QUOTE(HakonHoy @ Mar 12 2006, 07:26 PM) [snapback]354261[/snapback][/div][div class=\'quotemain\'][!--quotec--]I got this code in ASP.. what I need is to have it in php.. what i'm actually most interested in is the return confirm thing.. is there a code for such a thing in php, if yes, can anyone please tell me what it is, I have been looking all over for it...[/quote]That is pure HTML.. minus the [i]& rs("ID") &[/i] and [i]& MyQuote &[/i] Those are your ASP Functions...rs("ID") refer to the recordset from the db, specifically the ID column, while MyQuote I could only speculate..What I would suggest doing is learning how to pull data from a mySQL database, and going from there :)Good luck! Quote Link to comment https://forums.phpfreaks.com/topic/4772-confirm-message/#findComment-16750 Share on other sites More sharing options...
AndyB Posted March 12, 2006 Share Posted March 12, 2006 The [b]confirmation[/b] you want is plain vanilla javascript:[code]$cnf = "do you REALLY want to do that";<a onclick=\"return confirm('". $cnf. "')\" href=..... [/code] Quote Link to comment https://forums.phpfreaks.com/topic/4772-confirm-message/#findComment-16770 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.