How do I create a Y/N Pop-Up Warning Message?


#1

This is probably easy, but I’m a PHP newbie.

If I want to warn users about a current selection they have made using a pop-up box, how do I do this?

I want to ask them a YES or NO question, then make descisions based on their answer. For instance: “You have selected ‘Option X’ - are you sure this is what you want?”

If the say YES, then just continue as normal. If they say NO, then reload the existing page.

Thanks in advance for your help.


#2

This is absolutely easy for THIS forum. This is NOT a PHP question. It’s more a javascript question.

PHP presents STATIC pages in a DYNAMIC way. Once the page is presented… PHP is done. PHP (a recursive acronym for PHP: Hypertext Preprocessor) is just that a PREprocessor and therefore can do nothing (so to speak) once the page is presented.

I just did a quick websearch and found this site that might do the job for you.
http://javascript.internet.com/messages … nfirm.html

Good Luck and Happy computing


#3

I told you I was a newbie!

Thanks for pointing me in the right direction.


#4

Not a problem. I hope the link helped.

Happy Coding.

:D