I am working on a php project where I need to pass the value of 2D array from one page to another. Please help me.
Asked
Active
Viewed 493 times
0

Alessandro Minoccheri
- 35,521
- 22
- 122
- 171

Jaykumar Patil
- 359
- 4
- 13
-
You mean to send it from `form`? – iLaYa ツ Nov 30 '12 at 07:28
-
1can you paste the code what you have tried? – Vamsi Nov 30 '12 at 07:36
1 Answers
0
Serverside passing: if it is on the same server, store the array temporarily in $_Session or in a database. Otherwise: communicate it via Json...
It might help if you post the code that you already have...

Jeroen
- 727
- 1
- 9
- 20
-
1st page is a login form with a function that generates grid(matrix) of random alpanumeric values. 2nd page is used to process 1st page from where session starts...I want to pass the GRID generated in 1st page to 2nd page.. – Jaykumar Patil Nov 30 '12 at 07:31
-
Do you have something like Session variable? http://www.w3schools.com/php/php_sessions.asp – Jeroen Nov 30 '12 at 07:41
-
maybe this can help? http://stackoverflow.com/questions/871858/php-pass-variable-to-next-page – Jeroen Nov 30 '12 at 08:13
-
I got d solution.. on page 1: `$jk=base64_encode(serialize($finalgrid)); ` on page 2: `$finalgrid1=unserialize(base64_decode($_POST['grid']));` I got the 2D array on 2nd page... – Jaykumar Patil Nov 30 '12 at 12:57