Passing a group number not working

Discussion in 'Customization & add-ons' started by ronniead, Jan 21, 2008.

  1. ronniead

    ronniead Member

    Joined:
    Dec 20, 2007
    Messages:
    118
    Hi,

    Has anyone had some trouble with the following scenario?

    I have split up the registration process as follows:

    1. Page 1 - Grab their email address, first and last name
    2. Page 2 - Take them to signup.php (with contact details already filled out)

    Now, on Page1, I had a form which submitted as follows:

    Code:
    <form name="form1" method="post" 
    action="http://yourdomainname.com/signup.php?price_group=-1&product_id=6&hide_paysys=free"
    onSubmit="return Next();" id="form1">

    But, it displayed all the products (as opposed to the ones in group -1). When copy and paste the url it works fine, it's only when I try and submit via a form does it show all the products.

    What am I doing wrong?



    Thanks guys!
  2. ronniead

    ronniead Member

    Joined:
    Dec 20, 2007
    Messages:
    118
    Alex answered me on the helpdesk. Here's the answer:


    Use this format instead:
    <form name="form1" method="post" action="http://yourdomainname.com/signup.php" onSubmit="return Next();" id="form1">
    <input type="hidden" name="price_group" value="-1">
    <input type="hidden" name="product_id" value="6">
    <input type="hidden" name="hide_paysys" value="free">

    I have yet to try it out, but I'm sure it works....
    Alex...THANKYOU!

Share This Page