![]() |
|
04-21-2012
|
1 |
|
Graalian
Join Date: Dec 2011
Posts: 986
|
So I am quite new to HTML (I'm used to variable based and object base languages>.<) and I am having some trouble, and I was wondering if you could help me. What I wish to do is this: The user inputs text and hits enter The text is added to the end of a website URL. Ie www.website.com/[inputed text] And then it goes the the website Thanks:/ |
|
04-21-2012
|
2 |
|
Awesome Person
Join Date: May 2011
Posts: 217
|
If you use a form, and use the GET method, it will send the form's data to the page. Like so: PHP Code:
The 'name' attribute in the text field is what the name of the appended variable will be. Hope this helps. ![]() However, if you wanted to append the text in a different way, you would need to use some basic javascript. W3schools has some nice tutorials for javascript and HTML, I highly suggest reading through them. http://www.w3schools.com/html/default.asp http://www.w3schools.com/js/default.asp |
|
04-21-2012
|
3 |
|
Graalian
Join Date: Dec 2011
Posts: 986
|
Oh okay I see how this works now0.0 I will try something tomorrow. Thank you!! +Rep for the help, won't comment on rep because it doesn't work on iPod lol.
|