Passing SSI Variables to php file
Posted: Tue Mar 10, 2009 11:07 am
Hi,
I am having the hardest time finding how to pass variables set in ssi to my php file now that register_globals have been turned off.
My pages worked beautifully previously, but now they are not receiving the variables set in ssi. For example, I have an .shtml page that sets the variables like so...
<!--#set var="Mfg" value="AllK" -->
<!--#set var="BaseGradeFile" value="catalog-" -->
<!--#set var="GradeGroup" value="K" -->
and then calls the .php file like so...
<!--#include virtual="/includes/Grade.php" -->
with register globals on, it works fine. However, now that they really should be turned off, I cannot get my .php file to recognize the variables. I have tried the $_REQUEST["Mfg"], etc., but nothing is working.
Any suggestions would be hugely appreciated. I need to get this to work or I have to change 1000s of files. ugh.

I am having the hardest time finding how to pass variables set in ssi to my php file now that register_globals have been turned off.
<!--#set var="Mfg" value="AllK" -->
<!--#set var="BaseGradeFile" value="catalog-" -->
<!--#set var="GradeGroup" value="K" -->
and then calls the .php file like so...
<!--#include virtual="/includes/Grade.php" -->
with register globals on, it works fine. However, now that they really should be turned off, I cannot get my .php file to recognize the variables. I have tried the $_REQUEST["Mfg"], etc., but nothing is working.
Any suggestions would be hugely appreciated. I need to get this to work or I have to change 1000s of files. ugh.