Here's my script.
<?
$fields = "prijs naam";
foreach (explode(' ', $fields) AS $key => $val)
{
print '<input type="hidden" name="'.$val.'" value="'.$$val.'">';
}
?>
The problem is that the server is a php3 server. (foreach isn't supported) Therefore i tried the following but this doesen't work as well
<?
while(list($key, $val) = each(explode($fields))
{
echo $key ." ". $val;
}
?>
Can somebody tell me what i'm doing wrong because i'm running out of idea's
Thanx