I need to put alot of radio button values into the database, so I post 300 values to a processing page, where I need to sort things out a bit.
I want to be able to differentiate between each radio buttons value and name (when posted) so I can insert them into the database. This is my code: (but maybe i need a jagged array?)
VALUE:
foreach ($_POST as $key => $value)
{
$value = $value.',';
}
POST NAME: ???
foreach ($_POST[name]?? as ??? => $postname)
{
$postname = $postname.',';
}
Then I need to differentiate between the value and name and put in the correct columns in the database:
mysql_query("INSERT INTO tabke SELECT '$longstring' or die(mysql_error());;