Afficher un message
Vieux 17/10/2007, 16h42   #6
me
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Having trouble with php....input type=hidden

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


  Réponse avec citation
 
Page generated in 0,05773 seconds with 9 queries