show us the test1.php code.
show us the test2.php code.
We can't read your mind.
- Original Message -
From: Danielle van Gladbach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 6:59 AM
Subject: [PHP] sending array
Hi,
I am trying to send an array from one php
On Wednesday 15 January 2003 20:59, Danielle van Gladbach wrote:
I am trying to send an array from one php to another:
$org[index-A]=1701;
$org[index-B]=1209;
print a href=\test2.php?org=.$org.\test2/aBR\n;
But if I try to read te array in test2.php, I get Warning: Variable
There not much in there because I strip it for testing.
test1.php
?
$org[index-A]=1701;
$org[index-B]=1209;
print a href=\test2.php?org=.$org.\test2/aBR\n;
?
test2.php
?
while (list ($key, $val) = each($org))
{
print key=.$key.val.$val.br\n;
}
?
Rick Emery wrote:
show us the
You know, if you actually looked at the link you've created you'd find your
answer ...
-Original Message-
From: D.M. van Gladbach [mailto:[EMAIL PROTECTED]]
There not much in there because I strip it for testing.
test1.php
?
$org[index-A]=1701;
$org[index-B]=1209;
print
It works thanks
Here is the code, if anyone has the same problem:
test1.php
?
$org[index-A]=1701;
$org[index-B]=1209;
$var=serialize($org);
$var=urlencode($var);
print a href=\test2.php?var=.$var.\test2/aBR\n;
?
test2.php
?
$var=urldecode($var);
$org=unserialize($var);
while (list
On Wednesday 15 January 2003 08:59 pm, Danielle van Gladbach wrote:
I am trying to send an array from one php to another:
$org[index-A]=1701;
$org[index-B]=1209;
print a href=\test2.php?org=.$org.\test2/aBR\n;
But if I try to read te array in test2.php, I get Warning: Variable
On Thursday 16 January 2003 23:59, Gerald Timothy Quimpo wrote:
e.g., you might have a system whereby you encode the array
somehow into something easily parsed, e.g., index-value
pairs separated by a special delimiter, or urlencoded index
and value separated by a space. save the encoded
This method seems to have a size limitation (which is very small).
If your array is (relatively) large, page two will not display the
passed values.
I'm not sure the url string became too long or if the problem came from
SERIALIZE(). Just beware.
FYI
-john
=P e p i e D e s i g n s
8 matches
Mail list logo