[PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-04 Thread lallous
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

[PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-04 Thread Rodrigo Dominguez
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

[PHP] RE: Pass array in HTTP_POST_VARS question

2002-09-04 Thread Tim Ward
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

Re: [PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-04 Thread Marek Kilimajer
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

[PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-03 Thread David Robley
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