artbyvicky
01-18-2004, 08:10 PM
I am attempting to display the user's active product within a form field. I am using the following code for the form field:
<input type="text" name="CurrentPackage" value="{lookup arr=$products key=$p.product_id}" size="30">
This code worked when there was only one product for my test user. Now that there are multiple products, I get the following error message "within" the form field:
<br /><b>Warning</b>: Smarty error: assign: missing 'key' parameter in <b>/home/username/public_html/members/smarty/Smarty.class.php</b> on line <b>546</b><br />
Each user will only have one active product, which is their membership package. I do not want to display any inactive products. Can anyone help me with this?
I really appreciate any help I can get.
Thanks!
<input type="text" name="CurrentPackage" value="{lookup arr=$products key=$p.product_id}" size="30">
This code worked when there was only one product for my test user. Now that there are multiple products, I get the following error message "within" the form field:
<br /><b>Warning</b>: Smarty error: assign: missing 'key' parameter in <b>/home/username/public_html/members/smarty/Smarty.class.php</b> on line <b>546</b><br />
Each user will only have one active product, which is their membership package. I do not want to display any inactive products. Can anyone help me with this?
I really appreciate any help I can get.
Thanks!