I have a PHP script that will take an action that I want the user to confirm. I am just starting with Javascript because the PHP experts said this is the best way to do it. I really had no need to learn Javascript previous. I've read some examples of confirmation boxes and I think I understand how the examples worked but none clearly help me with my problem. I'll try to explain what I need and hope someone can confirm my theories and/or make suggestions.
I have a form on which the user checks sets of radio buttons then clicks a submit button (client side). The PHP script then processes the radio buttons and takes appropriate actions (server side). If a certain radio button is set, I need to put up a confirmation box. Since Javascript is a client side function it is not clear to me how to accomplish this. Is the technique to put a Javascript 'confirm' on that radio button (how?) then just assume it was confirmed when the posted data is returned? How do I unset the radio button (or set a different one) if the confirmation is negative?
Thanks.
I have a form on which the user checks sets of radio buttons then clicks a submit button (client side). The PHP script then processes the radio buttons and takes appropriate actions (server side). If a certain radio button is set, I need to put up a confirmation box. Since Javascript is a client side function it is not clear to me how to accomplish this. Is the technique to put a Javascript 'confirm' on that radio button (how?) then just assume it was confirmed when the posted data is returned? How do I unset the radio button (or set a different one) if the confirmation is negative?
Thanks.