Re: 2D array by POST
[email protected] (The Doctor) Thu, 18 May 2023 21:38:16 -0000 (UTC)
| Newsgroups | comp.lang.php |
|---|---|
| Organization | NetKnow News |
| Message-ID | <[email protected]> |
In article <[email protected]>, J.O. Aho <[email protected]> wrote: >On 5/18/23 18:04, Liz Tuddenham wrote: >> I need to send a 2-dimensional array from one file to another by POST. >> The array is $item[][] with contents that are entirelyintegers. >> >> I have tried : >> Print "<INPUT TYPE=hidden NAME=item[] VALUE=$item>"; >> with >> $item = stripslashes($_POST['item']); >> but it does not work. >> >> Any suggestions? > >1. use session, store the value in the session and then use it in the >next page directly from the session. > >2. serialize the variable and base64 encode the serialized data, post >this in the form and then base64 decode and unserialize. > Is base64 strong enugh? >-- > //Aho > > -- Member - Liberal International This is [email protected] Ici [email protected] Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising! Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b Alberta 29 May 2023 boot out the UCP and the NDP! Beware https://mindspring.com