| |||||||
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 ...
![]() |
|
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
|
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. |
|
#2
| ||||
| ||||
|
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>
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#3
| ||||
| ||||
|
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. |
![]() |
| Bookmarks |
| Tags |
| confirmation popup |
| Thread Tools | |
| Display Modes | |
| |