radio buttons are used while only one out of the


Radio buttons are used while only one out of the group of choice is to be selected. In the example code we have put a line break after every button.

Each of the Radio Buttons has to be assigned a VALUE and you should label each of buttons. The code given shows this. You can also change these labels along with other HTML tags if you want.

This takes care of the fundamentals of your radio buttons. You can tidy things up by adding up a statement above the buttons, and if you wish to choose a default selection (optional). To select a default selection you have to add "CHECKED" with the suitable radio button. The user of course can only select one option. The alternative will be returned to you as the name/value pair BEST FRIEND=Ajay (or whatever the user picks).

Request for Solution File

Ask an Expert for Answer!!
PHP Web Programming: radio buttons are used while only one out of the
Reference No:- TGS0416336

Expected delivery within 24 Hours