andreasb Posted March 2, 2010 Share Posted March 2, 2010 Hello, I'm trying to fetch some details from an URL which looks like this: www.somesite.com/register.php?referral=SOMEUSERNAME When someone goes to this site there should be a form input which is "disabled" (gray/not writeable) and has SOMEUSERNAME as value. How can this be done ? Quote Link to comment Share on other sites More sharing options...
khr2003 Posted March 2, 2010 Share Posted March 2, 2010 <INPUT NAME="realname" VALUE=$_GET['SOMEUSERNAME'] DISABLED> Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 2, 2010 Share Posted March 2, 2010 <input type="text" name="referral" disabled="disabled" value="<?php echo $_GET['referral']; ?>" /> Quote Link to comment Share on other sites More sharing options...
andreasb Posted March 2, 2010 Author Share Posted March 2, 2010 Thank you, that worked perfectly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.