Jump to content

Archived

This topic is now archived and is closed to further replies.

HakonHoy

Confirm message... ?

Recommended Posts


[!--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...

Share this post


Link to post
Share on other sites
[!--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!

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.