Posted by Toby Inkster on 12/19/06 09:16
BootNic wrote:
> <?
> foreach ($_GET as $key => $value) {
> print ('<input type="hidden" name="get_'.$key.'" value="'.$value.'">
> ');
> }
> ?>
or better...
<?php
foreach ($_GET as $key => $value)
{
printf('<input type="hidden" name="%s" value="%s">',
htmlentities($key) ,htmlentities($value));
}
?>
Just in case $key or $values contains lovely quote marks.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|