Passing PHP Arrays between HTML pages
Moderator: General Moderators
-
strongestbear
- Forum Newbie
- Posts: 4
- Joined: Thu Aug 01, 2002 11:07 am
Passing PHP Arrays between HTML pages
HI all
I am querying my database and returning an array of values.
Is there anyway I can make this array available in my next HTML page?
Right now I have a loop that converts all elements in the returned row into HIDDEN HTML variables. These HIDDENS can very easily be passed between pages. Although, when it comes time for me to check the users input with the Database Information(to see if there were any changes) the process becomes very slow. A guy(myself) would think that some PHP gurus would know how to pass my arrays. The ability to pass arrays would reduce the amount of querries made and the time in which it takes me to check/save modifications.
A big TIA for any advice
The Bear....The Strongest that is!
I am querying my database and returning an array of values.
Is there anyway I can make this array available in my next HTML page?
Right now I have a loop that converts all elements in the returned row into HIDDEN HTML variables. These HIDDENS can very easily be passed between pages. Although, when it comes time for me to check the users input with the Database Information(to see if there were any changes) the process becomes very slow. A guy(myself) would think that some PHP gurus would know how to pass my arrays. The ability to pass arrays would reduce the amount of querries made and the time in which it takes me to check/save modifications.
A big TIA for any advice
The Bear....The Strongest that is!
-
strongestbear
- Forum Newbie
- Posts: 4
- Joined: Thu Aug 01, 2002 11:07 am
Additional Info
I tried to pass the whole array as an HTML "HIDDEN". That doesn't work either.
Da Bear
Da Bear
-
strongestbear
- Forum Newbie
- Posts: 4
- Joined: Thu Aug 01, 2002 11:07 am
-
strongestbear
- Forum Newbie
- Posts: 4
- Joined: Thu Aug 01, 2002 11:07 am
AHH Mann!
It works for the most part.
Except....(there is always an except) I can't get the array indexes to write using the implode/explode/hide method. The implode() only uses number indexes and doesn't actually retrieve the keys from the array being imploded. Now that is a bummer and a half (aka bummer bum).
Thanks for all the Help
Da Bear
Except....(there is always an except) I can't get the array indexes to write using the implode/explode/hide method. The implode() only uses number indexes and doesn't actually retrieve the keys from the array being imploded. Now that is a bummer and a half (aka bummer bum).
Thanks for all the Help
Da Bear
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK