Hi Friends......
I have four radio button(red,green,blue,yello) and one ok button in a form in PHP. I want, when we select any one radio button i.e. red or someone and click ok button then color of the form will change according to select radio button. Suppose that we select red radio button then ok , color of the form will be red.
So please tell me anyone how to do this ?
Thank,.....
Loading

Satyapriya NayakPosted Mar 29, 2012, 12:25 AM
Try this...
change color.php
Thanks
If this post helps you mark it as answer
Vineet Kumar SainiPosted Mar 31, 2012, 12:24 AM
Sam HobbsPosted Mar 28, 2012, 10:28 PM
You might think I am being picky (overly critical) but the issue is important. If you realize that the radio buttons and the forms are all HTML then you understand better what you need to do. Note that PHP executes in the server and HTML is shown in the client. So if you want your PHP program to do something when a radio button is selected then you must send the event from the client to the server and the server sends something to the client.
It is better to use JavaScript in the client to process the radio buttons.