pstar99 Posted June 17, 2009 Share Posted June 17, 2009 Hi, I'm trying to make a text input field where visitors can enter a three digit number and then hit "go" or "submit". Based on the three digit number they would be send to a new page. For example if they enter 123 and hit submit it would send them to http://www.domain.com/123.html ... entering 456 would send them to http://www.domain.com/456.html ... etc Could anybody please help me get this up and running? Thank you Quote Link to comment https://forums.phpfreaks.com/topic/162494-create-dynamic-link-based-on-text-input-field/ Share on other sites More sharing options...
RussellReal Posted June 17, 2009 Share Posted June 17, 2009 <input type="text" id="number" /> <a href="javascript:void(top.location = 'http://www.domain.com/'+document.getElementById('number').value+'.html');">Go!</a> Quote Link to comment https://forums.phpfreaks.com/topic/162494-create-dynamic-link-based-on-text-input-field/#findComment-857642 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.