$HTTP_POST_VARS naughty naughty
Posted: Tue May 07, 2002 1:35 pm
Code: Select all
<?php
while (list($k, $v) = each($HTTP_POST_VARS))
{
print("<input type=hidden name="e;$k"e; value="e;".htmlspecialchars($v).""e;>\n");
}
?>There is one problem, i do not require it to print certain variables as hidden fields. Thus i need a way to exclude certain passed variables from being added as hidden fields. For example i do not want:
either:
<input type="submit" name="Submit" value="Submit">
or:
<input type="hidden" name="stage" value="3">
added as hidden fields.
Could you suggest a way to exclude variables from being added.