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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

manipulating URL-encoded variables to a browser

Status
Not open for further replies.

NewtownGuy

Technical User
Jul 27, 2007
146
US
Hello,

I have a question about manipulating URL-encoded variables in a browser. I need to create a string that combines information from two invocations of the browser.

I have a custom application that needs to send a URL of the following form:

Code:
[URL unfurl="true"]http://ip_address:8000/?value1=1234?value2=abcd[/URL]

to a browser, which will open index.html on the httpd server at ip_address:8000/

index.html does not need to respond to the variables sent to it, but it needs to be able to send them on to the httpd server, along with additional information, when a button is pushed in index.html.

Then when a button is clicked, I want index.html to modify the URL that it received and to send the resulting string to the httpd server. I want to create a composite string of the following form including new information from that button:

Code:
[URL unfurl="true"]http://ip_address:8000/cgi-bin/script.pl?button_data=whatever?value1=1234?value2=abcd[/URL]

My question is how do I program index.html, in response to a button click, to receive the variables sent to it by the first invocation of the browser, adding more text to the URL string including cgi-bin/script.pl and other variables ? I need successive button clicks to add other information to the original string, so I need to use the initial string multiple times.

Thank you.

-- NewtownGuy
 
index.html is most likely a static document. Static documents normally have no way of processing any data sent in the query string. By the description of what you want to do, javascript is probably the tool to use to get the query string data and do something with it. You can ask in the javascripting forum how to accomplish something like this.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top