Posted By

snaidoo on 01/12/11


Tagged

post magento


Versions (?)

Form Post Variables


 / Published in: Other
 

  1. <?php
  2. // This...
  3. $postData = $_POST;
  4.  
  5. // ...is the same as...
  6. $postData = Mage::app()->getRequest()->getPost();
  7.  
  8. // You can access individual variables like...
  9. if (isset($postData['product_id'])) {
  10. echo $postData['product_id'];
  11. }
  12.  
  13. ?>

Report this snippet  

You need to login to post a comment.