Why don't you launch your script once you are in the next page?
like:
"<a href=next_page.php>next</a>"
So you don't have to get or post anything?
$sql = "select stuff from my_table";
$result = mysql_query($sql);
$count = 0;
while ($myrow = mysql_fetch_assoc($result)) {
$id = $myrow["id"];
$my_array[] = $id;
}
----- Original Message -----
From: "Petre Agenbag" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 4:40 AM
Subject: [PHP] POST-ing or GET-ing an array
> Hi
> I KNOW I'm gonna get flamed, but I can't find this anywhere in my books
> or in the manual, yet I know I've read it somewhere.
>
> I created an array in a loop as such:
>
> $sql = "select stuff from my_table";
> $result = mysql_query($sql);
> $count = 0;
>
> while ($myrow = mysql_fetch_assoc($result)) {
> $id = $myrow["id"];
> $my_array[$count] = $id;
> }
>
>
> Now, I want to send that array to another page with a normal:
>
> <a href="next_page.php?array=$my_array">Next</a>
>
> BUT, that obviously doesn't work...
>
> Please just help me out, I'm suffering...
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php