RE: [PHP-DB] Receiving ARRAY from Forms
| From: | Kelly Protsko | Date: | Thu, 20 Feb 2003 16:57:49 +0000 |
| Subject: | RE: [PHP-DB] Receiving ARRAY from Forms | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25799@lists.php.net to get a copy of this message | ||
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:squirrel@isot.com]
Sent: February 20, 2003 9:41 AM
To: php-db@lists.php.net
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.
<?
if( isset( $submit ) )
{
echo "array list:<br>";
print_r( $eList );
$submit = "";
}
else
{
$mList = array();
$mList[0] = "1. hello";
$mList[1] = "2. there";
$mList[2] = "3. How are you";
$fShow = <<<EOD
<p>Press Submit Button to test</p>
<form method="POST" action="$PHP_SELF" name="Test Array">
<p><input type="submit" value="Submit" name="submit">
<input type="reset" value="Reset" name="B2"></p>
<input type="hidden" name="eList[]" value="$mList">
</form>
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