September 23rd, 2003, 01:05 PM
Unable to capture variables passed through the URL
I'm trying to pass variables through the url (example: lang.asp?ln=en). The page doesn't see the ln variable and it's contents and gives me an error. I've tried passing variables in the url using php and jsp on the same server. I'm thinking there's a setting in IIS that I am overlooking, not sure. Until I figure out how to get the variables in the url to work, my sites won't work.
I know I am coding my pages right. My hosted sites on other networks pass the variable from the url to the page just fine and the pages react to the variables the way I want them to.
Thanks for any help.
September 23rd, 2003, 03:22 PM
There is no setting I'm aware of that will block the querystring. I don't use php or jsp on windows, there may be some requirement or setting necessary in their setups.
September 23rd, 2003, 03:29 PM
BINGO! Figured it out. In c:\windows\php.ini, change session.use_trans_sid = 0 to session.use_trans_sid = 1. Now the variables int he url work in php, and now they work for me with my asp files too.
Sometimes all it takes is a little outside mind jogging. Thanks Doug.
September 23rd, 2003, 03:36 PM
How would that setting relate to the situation you originally described? And how would changing anything in the PHP configuration affect ASP?