Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I build a URL using input boxes

Status
Not open for further replies.

bookouri

IS-IT--Management
Feb 23, 2000
1,464
US
I want to open a new browser to a URL, but I want to display a form for the user to enter some info that will be used to build the url.. for example might be user #333's page. I need a form to ask for the user ID and then create the url, " & strUserNumber" and open that url in a new browser window when the user enters their ID and pushes the button. I can find examples of buttons that take input and search a database etc. but I cant figure out how to use it to build a URL.

Any help would be appreciated..
 
Hi

Use the submit function and send the inputs to the servers, then let the server build the URL and response.redirect to the page for the URL you built.

<%
strVar1 = request.form(&quot;TextBox1&quot;)


'then concatenate the results to the URL you need
response.redirect (&quot; & strVar1 & &quot;&quot;)
%>

hth
Bastien Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top