Display Data In Form Field

Discussion in 'Customization & add-ons' started by artbyvicky, Jan 18, 2004.

  1. artbyvicky

    artbyvicky New Member

    Joined:
    Jul 16, 2003
    Messages:
    5
    I am attempting to display the user's active product within a form field. I am using the following code for the form field:
    Code:
    <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:
    Code:
    <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!
  2. alex-adm

    alex-adm Guest

    Please contact support@cgi-central.net with your FTP info and description what and where you want to do, ok?

Share This Page