I need to have a form that when filled out will create a variable and then goto a url with that variable in the url.
Something like this (but that works) :)
<form action="?????" method="?????">
Number: <input type="text" name="url1" value=""><br>
<input type="submit" name="submit" value="Goto URL">
</form>
When the submit is pressed I need it to goto http://somewhere.com?url=VALUEHERE
Any ideas?
Use
method="GET"
to place the variables in the url:Posting this form will go to http://somewhere.com/?url=USER_INPUT_URL
Different from 1st. No form needed, add an attribute named 'id' for the textfield,then defined a javascript function to retrieve the value of textfield,then do the jump, Hope usefully.