The Nooby
09-14-2005, 10:23 PM
HELP Please. Alright im pretty new to HTML but i managed to throw together this site: www.br-pro.com
anyway i have a question on a form i am working on. Here the deal i have a text feild and a submit button. When somebody types something in the text feild and presses the submit button i want it to automaticly put Watever the person typed in the text feild on the end of this Url and then have it go to the URL with watever they typed on the end. Heres the URL:
http://www.h2advanced.com/stats/search.php?=
So i got it pretty much working i think. heres the Html i wrote for it:
<html>
<body>
<form name="input" action="http://www.h2advanced.com/stats/user.php?u=" method="get">
Type your Gamertag Here:
<input type="text" name="FirstName" value="???Gamertag???" size="20">
<input type="submit" value="Submit">
</form>
<p>
If you click the "Get Stats", you will be automaticly redirected to your player stats.
</p>
</body>
</html>
Ok now thats the Html. So heres my problem. This inputs watever they type in the text feild on the end of the url and goes to it but theres a problem. here is what the url should look like when a person has gone to it. (example of me typing in: Maven 01: in the text feild)
http://www.h2advanced.com/stats/user.php?u=Maven 01
but instead it looks like this:
http://www.h2advanced.com/stats/user.php?FirstName=Maven+01
as you can see it automaticly adds: FirstName: on the url for some reason and erases the U at the end of the url after PHP?:
Can anybody help me so that the final URL it goes to after typing in watever is:
http://www.h2advanced.com/stats/user.php?u=
then have it so watever they type goes on the end of the = sign.
thank you,
Nick
anyway i have a question on a form i am working on. Here the deal i have a text feild and a submit button. When somebody types something in the text feild and presses the submit button i want it to automaticly put Watever the person typed in the text feild on the end of this Url and then have it go to the URL with watever they typed on the end. Heres the URL:
http://www.h2advanced.com/stats/search.php?=
So i got it pretty much working i think. heres the Html i wrote for it:
<html>
<body>
<form name="input" action="http://www.h2advanced.com/stats/user.php?u=" method="get">
Type your Gamertag Here:
<input type="text" name="FirstName" value="???Gamertag???" size="20">
<input type="submit" value="Submit">
</form>
<p>
If you click the "Get Stats", you will be automaticly redirected to your player stats.
</p>
</body>
</html>
Ok now thats the Html. So heres my problem. This inputs watever they type in the text feild on the end of the url and goes to it but theres a problem. here is what the url should look like when a person has gone to it. (example of me typing in: Maven 01: in the text feild)
http://www.h2advanced.com/stats/user.php?u=Maven 01
but instead it looks like this:
http://www.h2advanced.com/stats/user.php?FirstName=Maven+01
as you can see it automaticly adds: FirstName: on the url for some reason and erases the U at the end of the url after PHP?:
Can anybody help me so that the final URL it goes to after typing in watever is:
http://www.h2advanced.com/stats/user.php?u=
then have it so watever they type goes on the end of the = sign.
thank you,
Nick