You are here: Re: re-post $HTTP_POST_VARS « PHP Programming Language « IT news, forums, messages
Re: re-post $HTTP_POST_VARS

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация