php - carrying product_id value to an extra added page through url -


i using opencart. want give link product_form.tpl page. mean have added tab called 'allocation' in have given button 'add allocation' should redirect external page. i'd provide product_id within link it's not working properly...

here code (product_form.tpl)

<div id="tab-allocate">         <table class="list"><tr><td align="center"><a href="allocation.php?product_id=&product_id" target="_blank" class="copybutton" style="width:120px;">add allocation</a></td></tr></table>         </div> 

but allocation.php?product_id=&product_id not working, goes allocate.php page doesn't carry product_id. doing wrong?

i think, it's wrong in passing parameter, please try that

<a href="allocation.php?product_id=product_id" target="_blank" class="copybutton" style="width:120px;">

your previous style work pass 2 parameter. eg <a href="allocation.php?product_id=product_id&second_id=second_id" target="_blank" class="copybutton" style="width:120px;">

hope help

ps. can use $this->request->post['product_id'] or $this->request->get['product_id']


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -