I want to pull a variable from the URL and have that posted in a form.
ie http://mysite.com/incoming.php?link=http://google.com
I have tried it with the $_REQUEST function but all that does is put the variable in the text input. It does not post it and thus I have to hit the submit button myself.
Here is an example of the code I am working with.
Code: Select all
<form name="form1" method="post" action="http://mysitecom/result.php">
<input name="link" type="text" size="50" value="<?php echo $_REQUEST['link']; ?>">
<input type="submit" name="send" value="Submit">
<input type="hidden" name="submitted" value="TRUE">
</form>