View Full Version : Button link from text input
wINKLEr
12 Sep 2007, 08:44 PM
I'm trying to create a form that can accept any text and then have a button that when clicked will follow what ever text is given as a link.
for instance, I type in "http://www.itypedallallthisin.com/" into the textarea or textbox or something, then when i click a button i will be directed to that site.
Wickham
13 Sep 2007, 02:09 AM
I've never heard of this being done. If a viewer wants to visit http://www.itypedallallthisin.com/ he would type it into his browser address bar instead. Why do you want him to type it into your input box?
I expect PHP or possibly javascript could do it. The submit button would be set up as a hyperlink with no url initially but with a request for anything typed in an input box.
You have to consider that viewers might mis-type an address or just type text, so the PHP would have to be set up to return to the original form if the text did not conform to a url (similar to forms rejecting email addresses if not in the correct format or input boxes for required fields not being completed).
It's beyond my capabilities, so ask on the PHP board.
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.