Jump to content


Photo

Confirm message... ?


  • Please log in to reply
2 replies to this topic

#1 HakonHoy

HakonHoy
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 12 March 2006 - 07:26 PM


[!--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...
[!--sizeo:1--][span style="font-size:8pt;line-height:100%"][!--/sizeo--][!--fonto:Verdana--][span style="font-family:Verdana"][!--/fonto--]My network of web sites:
[a href="http://www.xbox-talk.com/" target="_blank"]xBox-Talk.com[/a] - [a href="http://www.balando.com/" target="_blank"]Balando.com[/a]
[a href="http://www.humorhour.com/" target="_blank"]HumorHour.com[/a] - [a href="http://www.ordigno.com" target="_blank"]Ordigno.com[/a] - [a href="http://www.playword.info" target="_blank"]Playword.info[/a]
[a href="http://www.casinopromos.info/" target="_blank"]CasinoPromos.info[/a] - [a href="http://www.betbonus.info/" target="_blank"]BetBonus.info[/a] - [a href="http://www.newroomtalk.com/" target="_blank"]NewRoomTalk.com[/a][!--fontc--][/span][!--/fontc--][!--sizec--][/span][!--/sizec--]

#2 keeB

keeB
  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 12 March 2006 - 07:31 PM

[!--quoteo(post=354261:date=Mar 12 2006, 07:26 PM:name=HakonHoy)--][div class=\'quotetop\']QUOTE(HakonHoy @ Mar 12 2006, 07:26 PM) View Post[/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 & rs("ID") & and & MyQuote & 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!

Come visit my site to see my latest projects
http://nick.stinemates.org/wordpress/


#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 12 March 2006 - 08:29 PM

The confirmation you want is plain vanilla javascript:
$cnf = "do you REALLY want to do that";
<a onclick=\"return confirm('". $cnf. "')\" href=.....

Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users