PDA

View Full Version : Using URLS to Fill in Form Fields


wrongful
10-01-2004, 06:32 PM
I am sure there is a name for this, but I don't know what it is. I have a PHP form that I am using on my forums and I have a text box called $who, and I want to be able to have the URL of the script as "script.php?who=Username" and have that automatically fill in the text box with 'Username'.

Does anyone know the best way to go about doing this?

Modin
10-03-2004, 02:27 AM
<input type="text" name="name" value="<?php echo $_REQUEST['who']; ?>">


Try that :)