gnope php gtk gui gnope.org  

Pass objects as HTML form variables?

 
Post new topic   Reply to topic    gnope.org Forum Index -> Chatterbox
View previous topic :: View next topic  
Author Message
beidlerj



Joined: 10 Feb 2006
Posts: 55
Location: Oregon, USA

PostPosted: Tue Apr 11, 2006 1:11 am    Post subject: Pass objects as HTML form variables? Reply with quote

I don't suppose it's possible to pass a PHP object as an HTML form variable, is it? I wouldn't think so, but thought I'd check with those who can code circles around me. Wink

I have one page which queries a DB and gets an object back. I do this on Page A just to see if there are any records returned. If there are, I show a button that says "View Summaries". When clicked, the user is taken to Page B via an HTML form with some hidden variables. I thought it might be nice to just pass along the objects rather than re-doing the query on the second page.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Tue Apr 11, 2006 6:30 am    Post subject: Reply with quote

Magic word is "Session variables" here
Back to top
inspight



Joined: 08 Feb 2006
Posts: 4

PostPosted: Tue Apr 11, 2006 6:37 am    Post subject: serialize Reply with quote

I think you can do it if you serialize() and unserialize() the object but Session is the way to go
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> Chatterbox All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.