you can also join() the elements and pass as a single string, then explode()
the elements back again.
Elias
Paul Maine [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is it possible to pass an array in a form post? If so, how do I reference
the array on the next
If you are in a session you can register the array and it will be available
on the next page, once you finish working with the array, just unregister
the array.
File1.php action= file2.php
session_start();
session_register(foo);
var $foo = array();
File2.php
session_start();
Work with $foo
you just name the form elements as array elements, e.g. with explicit keys
name='array[0]' name='array[1]' etc.
or allowing php to assign the keys
name='array[]' name='array[]' etc.
then the array is an element of $HTTP_POST_VARS[] when the form is posted
Tim Ward
Don't forget to use urlencode after serializing.
David Robley wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Is it possible to pass an array in a form post? If so, how do I reference
the array on the next page?
Thank You
Paul
php
I believe you may need
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Is it possible to pass an array in a form post? If so, how do I reference
the array on the next page?
Thank You
Paul
php
I believe you may need serialize/unserialize here. Use serialize($array)
to create a simple variable that can
5 matches
Mail list logo