|
Posted by Mike Willbanks on 11/15/32 11:23
frey,
> <?php
> /* Re-Post all POST'ed variables */
> reset($HTTP_POST_VARS);
> while (list($key, $value) = each($HTTP_POST_VARS)) {
> if (!is_array($HTTP_POST_VARS[$key])) {
> echo tep_draw_hidden_field($key,
> htmlspecialchars(stripslashes($value)));
> }
> ---------------------------------------------
> the above part excuting well then error occurs with the following code
> which is used to check if the $HTTP_POST_VARS is an array
>
> if (is_array($HTTP_POST_VARS[$key]) ) {
>
>
> $ar = $HTTP_POST_VARS[$key];
> foreach ($ar as $re)
> {
> echo tep_draw_hidden_field($key.'[]', $re);
> }
> }
>
> }
If you could repost that snip of code with the line numbers and the
tep_draw_hidden_field code that may help. Also $HTTP_POST_VARS, why
would you use that? $_POST would be more accurate.
Mike
Navigation:
[Reply to this message]
|