answersLogoWhite

0


Best Answer

Radio Buttons allow only one value between them. For eg. Male or Female. So there is no point in declaring a loop for it. You could store the value like any other form elements. If you declare different names for radio buttons then & then only use this:

Orange

Apple

Grapes


File: action.php

if(isset($_POST['submit']))

{

if(isset($_POST['radio1']))

{

$value1 = $_POST['radio1'];

}

else

{

$value1 = "";

}

if(isset($_POST['radio2']))

{

$value2 = $_POST['radio2'];

}

else

{

$value2 = "";

}

if(isset($_POST['radio3']))

{

$value3 = $_POST['radio3'];

}

else

{

$value3 = "";

}

$value = $value1." ".$value2." ".$value3;

// Store the $value in database

}

?>

Ideally a checkbox is better suited to have multiple values

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a loop radio buttons that saves to database?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you loop songs on itunes?

There is some buttons in the bottom left cornner its the one that looks like a loop... hope this helps ^.^ ~morgie


Why are shirt buttons round?

Shirt buttons are round because it makes it easier to get through the loop or the hole on the shirt, instead of having some other designs.


What is Bridal loop and how would it be used to sew a wedding dress?

Bridal loop is a strip of material about 1/8" wide and every 1" or so has an elastic loop. It runs down the opposite side from the buttons and the elastic loops enclose over the buttons. That was harder to explain in words than I thought it would be. I hope that helps at least a little.


What is a loop electrosurgical excision?

a loop electrosurgical excision (LEEP), uses low-voltage high-frequency radio waves to excise tissue.


What happen to Erin Carmen from the loop 97.9?

She works for WGN radio now, the Loop laid several people off a few months ago-her included.


How do you select all columns of all rows from all table?

depending on your database vendor, you should perform a loop of all tables and their columns and issue a dynamic SQL. for curr_table in all tables loop table_columns = get_columns(); dynamically execute "select table_columns from curr_table"; end loop;


How is tissue removed in a loop electrosurgical excision procedure?

A loop electrosurgical excision procedure (LEEP) uses low-voltage, high-frequency radio waves to excise the tissue.


What are pre manufactured components in textiles?

Things like buttons, zips, sequins, toggles, drawstrings, beads, shape fasteners,hook and a loop


Is Jackie Stewart retired?

He has been retired from racing, but he is always in the loop by announcing racing on TV and radio.


How do you insert value to a dropdownlist from textbox input php?

Store the textbox input in a database using a html form prefarably. Using a loop get all the textbox input from database and use print/echo to show them in a dropdown.


What did Andrew alford invent?

Andrew Alford is known for his work in developing the Alford loop antenna, a type of radio antenna. It is commonly used in shortwave radio receivers for its compact and efficient design.


How does a loop antenna work?

There are two types of loop antenna used in radio, small and large. It is a loop of wire usually circular or square with the circuit (transmitter or receiver) connected at the two adjacent open ends. A large loop is one wavelength in circumference and radiates a wave along the axis of the loop. It can also be thought of as a folded half-wave dipole. A small loop also known as a magnetic loop is one tenth of a wavelength or less in circumference and radiates in the plane of the loop. Used as a receiver, a small loop gives an output signal voltage proportional to the magnetic component of the arriving radio wave. Small loops for receiving can be made from a coil of wire on a ferrite rod, and this type of loop is also called a loopstick antenna. Intermediate-sized loops have a rather unpredictable pattern so tend not be used.