SSI and query string variables to PHP
| From: | Tim Traver | Date: | Sun, 25 Apr 2004 05:29:01 +0000 |
| Subject: | SSI and query string variables to PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184547@lists.php.net to get a copy of this message | ||
Hi all,
ok, this may be a dumb question, but I have a page that has server side includes that include a php script like this :
<!--#include virtual="schedule.php" -->
works fine, except the script doesn't appear to receive any of the query string information if that page has a query string on it...
an example would be something like this :
http://www.domain.com/index.shtml?myvariable=1
the php script should get $_REQUEST['myvariable']==1, but instead does not get any of the query information.
The $_SERVER global gets the unescaped query string, but has no value for just the query string...
any way around this without making the whole page a php script ?
Thanks,
Tim