Anyone know how to pass singup.php a POST variable

Discussion in 'Customization & add-ons' started by ariell, Aug 17, 2009.

  1. ariell

    ariell New Member

    Joined:
    Aug 22, 2006
    Messages:
    1
    I need to pass a post variable to signup.php but need it to be stored in the database as a custom field - userkey. Any ideas on how to acheive this? Thanks much as my site integration will require this.

    Andrew Riell
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Add the field in amember, and set it to be visible in signup.
    In the signup.html remove the section that shows additional fields.

    Add this to signup .php:
    if ($_REQUEST['yourfield'] == "")
    { $_REQUEST['yourfield'] = $_REQUEST['yourfield']; }

    and this to signup.html in the form:
    <input type="hidden" name="yourfield" value="{$smarty.request.yourfield|escape}" />

    David

Share This Page