populate hidden field passed to signup.php

Discussion in 'Templates customization' started by juniorm, Aug 19, 2008.

  1. juniorm

    juniorm aMember Pro Customer

    Joined:
    Nov 13, 2005
    Messages:
    47
    Hello,

    I'm trying to add a hidden field (an integer) that will be stored with the member info.. but can be passed to the signup page.

    such as: http://pitstopboss.org/signup.php?referral_id=27

    what changes do i have to do to get this to work?

    many thanks.

    If it is simple.. i blame it on lack of sleep! (i've been messing around with this for hours)
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Well you need to have a
    $referral_id = $vars['$referral_id'];
    in your signup.php and in the signup.html page, something like
    <input type=hidden name="referral_id" value="{$smarty.referral_id|escape}" />


    David
  3. juniorm

    juniorm aMember Pro Customer

    Joined:
    Nov 13, 2005
    Messages:
    47
    I thought we should leave signup.php alone and there was a way to do it all via the admin system.

    This is what the final html looked like (a small alteration)
    <input type="hidden" name="referral_id" value="{$smarty.request.referral_id|escape}">

    I had to rebuild the database to get it to work.. i forgot before.

    The only thing I don't get is why the I had to put the above html code in the page... it seems like an oversight by Alex that we should do this, when his system can perhaps do this (seeing as we insert the fields into the amember backend)


    Anhyoo, it's working now with the html that you mentioned (i didnt have to alter signup.php)


    Thanks!

Share This Page