I'm having a few problems getting this to work. Basically I want to pass a string of variables to a script, which then passess the string of variables on again as variables - if your confused here's an example:

this gets passed to script1:


so when this is passed to script1

I want B="variable1?nextpassvariable=2&next2passvariable=3"

Which is then passed on again via a URL to the next script, and not to be broken down prior to this as follows:


I believe the solution lies in URL encoding, but am unsure on how this works.