Passing variable through pages

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
gastonlm
Forum Commoner
Posts: 26
Joined: Tue May 07, 2002 10:19 am
Location: Buenos Aires, Argentina
Contact:

Passing variable through pages

Post by gastonlm »

I have a variable called $sql in a page and I want to pass it to another page by submitting the page. Is it possible to do it if the variable isn't a field and I don't want to pass it as a querystring??
I'm trying to do paging, so I want to pass the sql statement through pages. I know that there are some classes but I couldn't get anyone.
User avatar
theChosen
Forum Newbie
Posts: 15
Joined: Sun Aug 18, 2002 11:00 am
Location: RO, Europe

Post by theChosen »

User avatar
theChosen
Forum Newbie
Posts: 15
Joined: Sun Aug 18, 2002 11:00 am
Location: RO, Europe

Post by theChosen »

gastonlm
Forum Commoner
Posts: 26
Joined: Tue May 07, 2002 10:19 am
Location: Buenos Aires, Argentina
Contact:

Thanks

Post by gastonlm »

Thanks for your help!!! It was useful.
kcomer
Forum Contributor
Posts: 108
Joined: Tue Aug 27, 2002 8:50 am

Post by kcomer »

may also want to think about using a db to hold the session variables. Just incase the user has cookies turned off or they are behind a firewall/proxy server that blocks them. This is becoming more and more common. Juts a thought.

Keith
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if using a database the information which data is related to a user must be transfered, too.
If cookies are blocked session-handling in php supports passing the session-id via 'GET'.
Post Reply