Posted by Arjen on 02/22/07 13:01
elia schreef:
> Thanks but it's doesn't work for button radio... pascal
offcourse it does.
on page 1
echo '<input type = "radio name="gender" value="female" />';
echo '<input type = "radio name="gender" value="male" />';
on page 2
foreach ($_POST as $key=>$val)
{
echo '<input type = "hidden" name="'.htmlentities($key).'"
value="'.htmlentities($val).'" />';
}
on page 3
// do this any way u like. This will give an error in safe mode.
$checked[$_POST['gender']]='checked="checked"';
echo '<input type = "radio" name="gender" value="female"
'.$checked['female'].'/>';
echo '<input type = "radio" name="gender" value="male"
'.$checked['male'].'/>';
echo 'Your gender is'.$_POST['gender'];
if it doen't work post the output of var_dump($_POST); did you set your
form right ?
--
Arjen
http://www.hondenpage.com - Mijn site over honden
Navigation:
[Reply to this message]
|