|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
passing arrays from page to page
Hello, I'm learning this stuff very slowly so please take nothing (my knowledge) for granted ;p.
I'm trying to pass an associative array from one page to another so that I can retreave what ever values I need when ever I need them. I can do this varaible by variable, but that seems a bit tedious. Thanx in advance :] PHP Code:
|
|
#2
|
||||
|
||||
|
I'd be pretty surprised if that worked. You should consider using sessions, which will allow you to pass objects and arrays around. Failing that, I guess you could use the serialize() function to convert your array to a string, pass the string in your query string, and use unserialize in the second page to extract the values. You'd probably run into url length issues if the array got too big. Go with sessions, I say, or just pass the user id to the next page and do your query again (or better yet, do the query only on the second page after determining that the given user is logged in).
|
|
#3
|
|||
|
|||
|
thanx
Thank you ... boy this stuff sure is different than what I'm used to . (Flash ActionScript)
In ActionScrit you just scope the name of your array wherever you like (movieclip/_level/etc.) and then access any index at will. There are no associative arrays in ActionScript though... I wish there were. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > passing arrays from page to page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|