Query String and Requiring Files
Hi,
Here is the problem that i'm having. I want to use a value from a query string to use in a file path of a required file. The problem is that the code for proccessing the query string comes after the code for the required file so when the script is run the variable is nothing so it gets the wrong path. When i put the code for proccessing the query string above the code for the required file the script errors out and i get an error that says scalar found were operator is expected. I know that i could just write another piece of code to open the file and read the info but i was wondering if anyone noes how i can fix this easily. (The script is in perl.)
Thanx
Gr8One
hotcut posted this at 20:41 — 21st June 2001.
They have: 133 posts
Joined: Sep 2000
I believe that the reason why people doesn't ansver this is that you aint giving enough information!
If you want people to help, you need to give examples! Show us your code, and we will look at it!
For your problem, can't you just process the querystring up higher in the page?
~Casper
PS: I have no expirirence in PERL what so ever... but I believe that everyone would need more info in order to help!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.