View Full Version : How embed web page data entry to open up a URL in a browser?

08-07-2012, 06:26 PM
I want to have a data entry box on a web page with a submit button. When the user enters text and hits submit a web page then opens up, using the entered text in the url string, in a new browser window.

For example if the user enters, "12345", the following web page opens up in a browser window, notice the "12345" in the url....


The following is the code I currently have in the web page to capture the data entry box. How does this need to be changed so I can do what I describe above?

<form id="search-form" method="get" action="" class="form-search">
<input name="search" type="text" class="txt" id="search" value="Search Page#..." onfocus="if(this.value == 'Search Page#...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search Page#...';}"/>
<input type="submit" value="Submit" class="btn-search"/>

Very appreciative of anyone who can help.
Thanks, Al