can anyone tell me how to achieve the following in php3.
Because this is in php4
<? $fields = "price name";
foreach (explode(' ', $fields) AS $key => $val) {
print '<input type="hidden" name="'.$val.'" value="'.$$val.'">'; } ?>
i think its
while(list($key, $val) = each(explode($fields)) { echo $key ." ". $val; }