Passing SSI Variables to php file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Metzzz
Forum Newbie
Posts: 1
Joined: Tue Mar 10, 2009 10:59 am

Passing SSI Variables to php file

Post by Metzzz »

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. :banghead: 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.

:?
Post Reply