Posted by me on 10/17/07 15:42
It wont work the way you are trying to do it. You would need to have both
values in the the select or radio value. Then explode it or something.
There is no way to link the hidden field to the correct value of the select
in your code.
if ($field_name=="member_lname") {
echo "<input type='radio' name='selection'
value='{$result['member_lname']},{$result['member_fname']}:{$result['member_id']}'>
{$result['member_lname']},{$result['member_fname']}<br />";
}
$value = explode(":",$_REQUEST['selection']);
$name = $value[0];
$id = $value[1];
There are many ways to do this this is just a quick example. Also If you use
this code be sure to scrub the $_REQUEST var
Eric Haskins
PHP Programmer
Parked.com
[Back to original message]
|