Hey guys i have a site with a referral system. The site generates a referral link for each user to use. However when the link is used the referrers name isnt auto generating into the text field in the signup form. Im not familiar with grabbing info from a link and auto submitting to a form any help with this would be appreciated.
Yes, use GET. So the text field HTML would look like this; <input type='text' name='ref' value='<? echo $_GET['id']; ?>' /> HTML: Good luck phoenixrayne.
ive tried incorperating that into the signup page.. output is only "/" in the field. Here is the code im using. along with the link structurel. <tr><td><b>Referrer</b>:</td> <td><input type=text name=referrer value=<? echo $referrer = $_GET['nickname']; ?> /></td> Code (markup): here is the referral link im trying to call the nickname from. XXXX.com/index.php?x=signup&referal=phoenixrayne link structure in the code from the referral system is http://elitemobb.com/index.php?x=signup&referal=$stats_array[nickname]</td></table>"; Code (markup):
Please use this: <tr><td><b>Referrer</b>:</td> <td><input type='text' name='referrer' value='<? echo $_GET['referal']; ?>' /></td> </tr> Code (markup): The Query String is called referal, so I don't see why your using nickname.