Posted By

xida on 11/23/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

xmartyxcorex


Loop $POST Array and store in form hidden fields


 / Published in: PHP
 

  1. form id="solarrechner" name="solarrechner" action="index.php" method="POST">
  2. <?php
  3. foreach($_POST as $key => $value) {
  4. <input type="hidden" name="' . $key . '" value="' . $value . '">
  5. ';
  6. }
  7. ?>
  8. </form>

Report this snippet  

You need to login to post a comment.