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 ? Link to comment https://forums.phpfreaks.com/topic/193872-url-variable-to-disabled-form/ Share on other sites More sharing options...
khr2003 Posted March 2, 2010 Share Posted March 2, 2010 <INPUT NAME="realname" VALUE=$_GET['SOMEUSERNAME'] DISABLED> Link to comment https://forums.phpfreaks.com/topic/193872-url-variable-to-disabled-form/#findComment-1020315 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']; ?>" /> Link to comment https://forums.phpfreaks.com/topic/193872-url-variable-to-disabled-form/#findComment-1020316 Share on other sites More sharing options...
andreasb Posted March 2, 2010 Author Share Posted March 2, 2010 Thank you, that worked perfectly. Link to comment https://forums.phpfreaks.com/topic/193872-url-variable-to-disabled-form/#findComment-1020321 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.