|
Posted by pepper.gabriela on 09/16/07 08:53
> I've even written a function that reads all of the elements in an array
> (e.g., $_POST) and creates hidden form fields for each one. It can even
> handle multi-dimensional arrays (e.g., $_POST variables that are
> themselves, an array).
Chuck, this sound really interesting, simple and powerful too:
at the moment, page B converts every key in a variable of the same
name:
foreach($_POST as $k => $v){
if(in_array($k,$required_keys)&&(trim($_POST[$k]!=''))){
${$k}=$v;
$count++;
}
}
it would be quite easy to use this foreach to build my fields :-)
Thanks!
Navigation:
[Reply to this message]
|