Forum Moderators: phranque

Message Too Old, No Replies

ssi QUERY_STRING

How do you pass more than 1 value?

         

ILLstyle

3:31 am on Apr 13, 2004 (gmt 0)

10+ Year Member



I'm trying to pass multiple values from a webpage to a .shtml ssi page.

the end of my link looks something like this

webpage.shtml?a=value1&b=value2 or webpage.shtml?value1,value2

After I do that I need to separate the values so I can use them.

any ideas?

ILLstyle

1:39 pm on Apr 13, 2004 (gmt 0)

10+ Year Member



no SSI experts in the house?

bird

3:27 pm on Apr 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



webpage.shtml?a=value1&b=value2 or webpage.shtml?value1,value2

After I do that I need to separate the values so I can use them.

Use the first form with a virtual include:

<!--#include virtual="webpage.shtml?a=value1&b=value2" -->

Then process that as you would process form submitted values in any other CGI script.

ILLstyle

3:53 pm on Apr 13, 2004 (gmt 0)

10+ Year Member



bird, Thanks for the reply, I really appreciate the help.

Im still having problems processing the 2 values.

Normally in other CGI scripts I would need a loop to parse the string and split up the values.

I don't know how to do this using SSI.

bird

4:58 pm on Apr 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Normally in other CGI scripts I would need a loop to parse the string and split up the values.

I don't know how to do this using SSI.

Your script won't know that it was invoked through SSI. Just do what you would normally do in there.

ILLstyle

7:30 pm on Apr 13, 2004 (gmt 0)

10+ Year Member



I don't want to use an out side CGI script, just SSI
to parse the string.
can it be done?

jdMorgan

7:42 pm on Apr 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use regular expressions to parse out the values you want to assign to your SSI vars: [devpapers.com...]

Jim

ILLstyle

7:49 pm on Apr 13, 2004 (gmt 0)

10+ Year Member



thanks jdMorgan
I will give it a try