#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    5
    Rep Power
    0

    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.
  2. #2
  3. No Profile Picture
    Stumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,409
    Rep Power
    4538
    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.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    5
    Rep Power
    0
    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.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2001
    Location
    USA
    Posts
    830
    Rep Power
    14
    How would that setting relate to the situation you originally described? And how would changing anything in the PHP configuration affect ASP?

IMN logo majestic logo threadwatch logo seochat tools logo