ssi querystring

S

Stuart Palmer

Hi,
Not sure if this is the right place to post this as it's pure ssi question,
but I'll try anyway......

I have a server that only allows me to run ssi code. No perl, no asp, just
ssi code.

I can pull into a variable - <!--#set var="querystring"
value="$QUERY_STRING" -->

Now, if my querystring passed through has 3 params and values, I'd like to
split this up or pull in each of the 3 values into seperate variables, so I
can process them seperatly.

I would imagine that perhaps I might be able to do something like:
<!--#set var="var1" value="$QUERY_STRING('variable1')" -->
<!--#set var="var2" value="$QUERY_STRING('variable2')" -->
<!--#set var="var3" value="$QUERY_STRING('variable3')" -->
but not sure if this is valid context, if indeed it can be done.

Is there anyway I can do this?...if so, how? I don't want to use Javascript
(as this defeats the object or what I am trying to achieve)

Thanks for any help
Stu
 
P

Paul Lalli

Stuart Palmer said:
Not sure if this is the right place to post this as it's pure ssi question,
but I'll try anyway......

I have a server that only allows me to run ssi code. No perl, no asp, just
ssi code.

Er, so you acknowledge that Perl is no where involved in your question,
and yet you're not sure whether or not comp.lang.perl.misc is the proper
place for your question?
I can pull into a variable - <!--#set var="querystring"
value="$QUERY_STRING" -->

Now, if my querystring passed through has 3 params and values, I'd like to
split this up or pull in each of the 3 values into seperate variables, so I
can process them seperatly.

I would imagine that perhaps I might be able to do something like:
<!--#set var="var1" value="$QUERY_STRING('variable1')" -->
<!--#set var="var2" value="$QUERY_STRING('variable2')" -->
<!--#set var="var3" value="$QUERY_STRING('variable3')" -->
but not sure if this is valid context, if indeed it can be done.

Despite myself, I have to ask - if you're not sure whether or not the
above is valid, *what happened when you tried it?*. Why is that not
your first step in trying to determine if something you think *might* be
possible actually *is* possible?
Is there anyway I can do this?...if so, how? I don't want to use Javascript
(as this defeats the object or what I am trying to achieve)

As a guess, I'd say one of the comp.infosystems.www.* groups is where
you want to go.
 
S

Stuart Palmer

Thx Paul, I found the answer now:

<!--#set var="ue_querystring" value="$QUERY_STRING_UNESCAPED" -->
<!--#if expr="\"$ue_querystring\" = /.*value_checking_for_in_qs.*/" -->


The reason I tried here is because everything I looked up on xssi pointed to
perl......so where better place to try first?

Imagining doesn't mean I didn't try the code I stated, and I assumed that as
it didn't work thats why I was having problem, so wasn't sure what the code
could be, hence the question.

All you needed to say was, 'not the right place try comp.infosystems.www.*
groups', not talk down to someone who needs assistance, it's not very
constructive and a waste of yours and my time......

Thx anyway for the group, I will try that...
Stu
 
T

Tad McClellan

Stuart Palmer said:
it's not very
constructive and a waste of yours and my time......


If your off-topic post wasted the time of only 2 people it
wouldn't be much of a big deal.

But that isn't what happened, your off-topic post wasted the time
of the *hundreds* of people that read this newsgroup.


It is constructive (for the newsgroup) to discourage people from
making off-topic postings.

If we didn't, then observers might think that off-topic posts
were OK, and start sending their's too, and the S/N ratio here
would go from the toilet (its normal level) to the sewer proper.


It is constructive (for you) to know that there is a better place
to get the answer to your question.


That is, the followup was constructive for all involved!

(and even for many who were not involved.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top