View previous topic :: View next topic |
Author |
Message |
Jason Silver -
Joined: 05 Apr 2004 Posts: 3
|
Posted: Mon Apr 05, 2004 4:01 am Post subject: Very Happy but... SSI & QUERY_STRING? |
|
|
How do I pass Query string variables to my CGI (Perl) script from SSI pages?
ie:
http://www.mysite.com/folder/?variable=1&another=what
The script is not passed the variables 'variable' and 'another.'
What can I do to fix this?
~Jason Silver
CrookedBush.com |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Apr 05, 2004 2:38 pm Post subject: Re: Very Happy but... SSI & QUERY_STRING? |
|
|
Jason Silver,
Do you want to pass the QUERY_STRING an SSI page gets to a CGI include directive? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Jason Silver -
Joined: 05 Apr 2004 Posts: 3
|
Posted: Mon Apr 05, 2004 3:57 pm Post subject: Yes |
|
|
Yes, I want my included script to be able to have variables passed to it via the query string.
~Jason |
|
Back to top |
|
|
Omar G -
Joined: 21 Mar 2003 Posts: 34 Location: Honolulu, Hawai'i
|
Posted: Wed Apr 07, 2004 11:57 am Post subject: |
|
|
You can do it like this:
myPage.shtml/?coolness
Then use $QUERY_STRING, which will now hold the value "coolness". SSI does not provide a way of accessing url vars (?x=coolness). CGI scripts parse the $QUERY_STRING and break it up into arrays. I have made a url rewriting script which does this, but it uses Apache-specific modules (mod_rewrite and mod_env). Perhaps this can be added to Abyss' wishlist of To Do's...
- OmarG |
|
Back to top |
|
|
Jason Silver -
Joined: 05 Apr 2004 Posts: 3
|
Posted: Wed Apr 07, 2004 1:38 pm Post subject: Yes, I Know, but... |
|
|
I am a Perl programmer-- I know all about this. That's why the title of my first post.
QUERY_STRING is not being sent through the environment variables.
I cycled through the entire environment hash and printed it from a SSI page. There were no variables which displayed the information after the question mark.
So back to the beginning. Anyone know what's wrong with the web server?
Jason Silver
Programmer at Intelliscript.net |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Apr 07, 2004 2:28 pm Post subject: Re: Yes, I Know, but... |
|
|
Jason Silver,
Can you please post (or send to support@aprelium.com) the SSI file you want to have and tell us where is the problem exactly? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
mayfair -
Joined: 10 Sep 2004 Posts: 1
|
Posted: Tue Mar 15, 2005 5:20 am Post subject: same problem here. |
|
|
Hi, after i upgraded to the new version i noticed that some of my scripts that worked fine before don't work right anymore, i noticed that all of them using http://site.net/file.cgi?variable, aren't pasing any parameter after the ?, so they only execute the file like it was just http://site.net/file.cgi
so the new version is completely ignoring any parameters after the ? sign.
is there any option i need to set up to fix it?
ain't this a problem related with the new multi virtual hosting supported?
note: i has been using version 1.2.3.0 without any problems until now that i upgraded. |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1300
|
Posted: Tue Mar 15, 2005 12:12 pm Post subject: Re: same problem here. |
|
|
mayfair,
Can you please send to support@aprelium.com one of these scripts that doesn't work? Can you please send us also your configuration file? |
|
Back to top |
|
|
|