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 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> 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
Archived
This topic is now archived and is closed to further replies.