try another color scheme:


Go Back   TECH6.0 > Get Techie > Programming > PHP/MySQL


Present a confirmation popup

This is a discussion on Present a confirmation popup within the PHP/MySQL section, part of the Programming category; I am pretty sure the answer to my question is to use Java, but I have no clue how to ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 04-04-2009, 04:35 AM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default Present a confirmation popup

I am pretty sure the answer to my question is to use Java, but I have no clue how to go about doing this.

In my vBulliten forum, I have created links that when clicked, take action in the database. I have for example:

link is: /forum/dothis.php - this then manipulates the database and then redirects the user.

Inside, dothis.php, the very first thing I want is to present the user with a popup that in effect says "Are You Sure?" with Yes No buttons. This then, would return the selected value to dothis.php and I can then take action depending on that.

I have made good ground learning php, html, and vbulliten stuff, but have no clue with Java, which, like I said, I think is the answer here.

Can someone provide me with a code snippet to accomplish this? Thank you in advance.
Reply With Quote
  #2  
Old 04-04-2009, 09:10 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

I have said this numerous times before, Java is NOT Javascript.

and what you want is Javascript here, not Java, its a totally different thing.

So all you want is a Javascript confirmation popup for a hyperlink..

Try this:-

HTML Code:
<a href="http://www.yahoo.com/"
onclick="return confirm('Are you sure?')">
Go To Yahoo</a> 
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #3  
Old 04-04-2009, 10:42 AM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default

I am sorry for confusing Java and Javascript. Realize though, I was just making a guess. I really had no idea how it was done. Thought it would be simple, but not as simple as what you have given me.

Thank you very much, this was so simple, and is working great now. I suppose I should have been able to figure this one out.
Reply With Quote
Reply

Bookmarks

Tags
confirmation popup


Thread Tools
Display Modes




All times are GMT +5.5. The time now is 08:14 AM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top