On 3/11/2011 2:43 PM, Geoff Lane wrote:
[snip]
You could use foreach to iterate through the post variables until you
encounter a match:
foreach ($_POST as $key => $value){
if (substr($key, 0, 6) == "radio_") {
$buttonName = $key;
$buttonValue = 4value;
break 2;
On 03/11/2011 02:33 PM, Jim Lucas wrote:
> On 3/11/2011 12:03 PM, Shawn McKenzie wrote:
>> On 03/11/2011 01:28 PM, Danny wrote:
>>> Hi guys,
>>>
>>> I have a form that has a long list of radio-bottons inside of it. The
>>> radio-buttons are dynamically created via php and MySQL.
>>>
>>> Here is an
On 3/11/2011 12:03 PM, Shawn McKenzie wrote:
> On 03/11/2011 01:28 PM, Danny wrote:
>> Hi guys,
>>
>> I have a form that has a long list of radio-bottons inside of it. The
>> radio-buttons are dynamically created via php and MySQL.
>>
>> Here is an example of one of the radio buttons:
>>
>> "
>> v
You could use foreach to iterate through the post variables until you
encounter a match:
foreach ($_POST as $key => $value){
if (substr($key, 0, 6) == "radio_") {
$buttonName = $key;
$buttonValue = 4value;
break 2;
}
}
I haven't tried the above code, but I hop
4 matches
Mail list logo