[PHP-DB] Receiving ARRAY from Forms
I tried the following code but all I get back is "Array". I'm trying to pass a huge array. "; print_r( $eList ); $submit = ""; } else { $mList = array(); $mList[0] = "1. hello"; $mList[1] = "2. there"; $mList[2] = "3. How are you"; $fShow = <- This mail sent through ISOT. To find out more about ISOT, visit http://isot.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Receiving ARRAY from Forms
You could use sessions to pass the array to the next page easily. $_SESSION[arraylist] = $mList; Then just grab it back from the other form. If you haven't used sessions before you can get a quick overview here. http://www.theoutersphere.com/php/sessions.php Kelly -Original Message- From: Squirrel User [mailto:[EMAIL PROTECTED]] Sent: February 20, 2003 9:41 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Receiving ARRAY from Forms I tried the following code but all I get back is "Array". I'm trying to pass a huge array. "; print_r( $eList ); $submit = ""; } else { $mList = array(); $mList[0] = "1. hello"; $mList[1] = "2. there"; $mList[2] = "3. How are you"; $fShow = <<Press Submit Button to test EOD; echo $fShow; } ?> - This mail sent through ISOT. To find out more about ISOT, visit http://isot.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Receiving ARRAY from Forms
> I tried the following code but all I get back is "Array". I'm trying to pass > a huge array. You need to serialize the array... > if( isset( $submit ) ) > { > echo "array list:"; > print_r( $eList ); > $submit = ""; > } > else > { > $mList = array(); > $mList[0] = "1. hello"; > $mList[1] = "2. there"; > $mList[2] = "3. How are you"; $mList = serialize($mList); > $fShow = << Press Submit Button to test > > > > > > EOD; > > echo $fShow; > } > ?> and unserialize() it on the receiving page to get your array back. If magic_quotes is on, be sure to stripslashes() it before unserialize()ing it. ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php