I need soe help with HTML! How would I make it so that if the user put some text in a box, when they press 'Get my URL now! it would have some text before like:
[Put your text here]
[Get my URL Now!]
Your URL is: abcdefg.com/[TEXT].abc
e.g:
Last edited by Servine (2011-08-08 15:42:35)
Offline
<input type="text" size="50" id="text" /><br />
<a href="javascript: var text = document.getElementById('text').value; document.write('Your url is: test123.com/'+text+'.txt');">Press me for your url</a>Offline
Lol. Javascript is your best choice. There's also PHP, but it would have to reload the page, unless uyou use Ajax. Nuff' said.
Offline
GP1 wrote:
Code:
<input type="text" size="50" id="text" /><br /> <a href="javascript: var text = document.getElementById('text').value; document.write('Your url is: test123.com/'+text+'.txt');">Press me for your url</a>
thankyou.
Offline
sparks wrote:
Are you basically working on a tinyurl system? taking an URL and turning it into a shorter one? You'll need MySQL to store the conversion choice, but this has been done already
![]()
No, she is trying you to enter you website link, you press the button and bellow the button it says the exact thing you entered in the box. And I can make a tinyurl system if you want.
Offline