PDA

View Full Version : Display Data In Form Field


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!

alex-adm
01-20-2004, 02:48 PM
Please contact support@cgi-central.net with your FTP info and description what and where you want to do, ok?