Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
the code is used for repost $HTTP_POST_VARS from a form to the insert
page at the "preview" page

/* Re-Post all POST'ed variables */
      while (list($key, $value) = each($HTTP_POST_VARS)) {
        if (!is_array($HTTP_POST_VARS[$key])) {
          echo tep_draw_hidden_field($key,
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);


the code is able to excute but warning message appear:
Warning: Unexpected character in input: '' (ASCII=29) state=1 in
/home/frey80/public_html/catalog/admin/categories.php on line 863

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/home/frey80/public_html/catalog/admin/categories.php:863) in
on line 67

i suspect the second part of re-post script cause the session info to
be send again, my intention was to choose the value from a multiple
select box which comes as an array and re-post it, is there any idea
what i can do?

thank you very much!!

Re: re-post $HTTP_POST_VARS


Quoted text here. Click to load it

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.


Site Timeline