ActiveState Community

Build HTML query string

Posted by jsons on 2007-04-13 11:18

I need to modify some existing perl code on a cgi page that runs on a solaris unix system. I am coding on a Windows XP development environment and I don't know perl.

I need to create a hyperlink, which I have done sucessfully. Then, using variables from the page, add a query parameter string to the end of my url in the link.

The link works fine, but I cannot get the query string added to it.

I need a link like this:

http://server/app/?param1=var1&param2=var2

The question mark and the ampersand are giving me fits, methinks.

Any suggestions appreciated, thanks.