[PHP] passing ARRAYs through GET strings

2002-05-18 Thread Navid Y.

Hello   :)

Can anyone suggest of another way, an easier way, to send arrays through
get strings, or through any other process, without having to serializing
it? For example, would it be better to use sessions in this case? Any
help would be greatful, thanks.  :)

Navid


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread Richard Baskett

In your html input just add [] to the name of your variable so for example:

input type=text name=firstvar[] /

Rick

Not one of them who took up in his youth with this opinion that there are
no gods, ever continued until old age faithful to his conviction. - Plato

 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 13:26:11 -0500
 To: [EMAIL PROTECTED]
 Subject: [PHP] passing ARRAYs through GET strings
 
 Hello   :)
 
 Can anyone suggest of another way, an easier way, to send arrays through
 get strings, or through any other process, without having to serializing
 it? For example, would it be better to use sessions in this case? Any
 help would be greatful, thanks.  :)
 
 Navid
 
 
 -- 
 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




RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP

Hi Navid

Don't you have to serialize it to put it in
sessions?

-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] passing ARRAYs through GET strings


Hello   :)

Can anyone suggest of another way, an easier way,
to send arrays through
get strings, or through any other process, without
having to serializing
it? For example, would it be better to use
sessions in this case? Any
help would be greatful, thanks.  :)

Navid


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread Richard Baskett

Oh sorry I read your message wrong.. But the idea still stands..

a href=nextpage.php?var[]=1var[]=2var[]=3Link/a

Rick

Sir my concern is not whether God is on our side. My great concern is to be
on God's side. - Abraham Lincoln

 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 13:26:11 -0500
 To: [EMAIL PROTECTED]
 Subject: [PHP] passing ARRAYs through GET strings
 
 Hello   :)
 
 Can anyone suggest of another way, an easier way, to send arrays through
 get strings, or through any other process, without having to serializing
 it? For example, would it be better to use sessions in this case? Any
 help would be greatful, thanks.  :)
 
 Navid
 
 
 -- 
 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




RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread Navid Y.

Thanks SP and Richard,

Well, I tested it and it works fine with sessions, without serializing
it. The only problem with sending it through GET url strings is that you
can only send about 255 characters of data through to the next page. I
was just looking to see how others pass their array values through their
URLs. So far sessions is a winner, but maybe there's another way. Like
what Richard suggested. But that method seems too time consuming and
will be confusing later on since it uses enumerated arrays. Just need
some suggestions and hints.   :)

-Original Message-
From: SP [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, May 18, 2002 1:31 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET strings


Hi Navid

Don't you have to serialize it to put it in
sessions?

-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] passing ARRAYs through GET strings


Hello   :)

Can anyone suggest of another way, an easier way,
to send arrays through
get strings, or through any other process, without
having to serializing
it? For example, would it be better to use
sessions in this case? Any
help would be greatful, thanks.  :)

Navid


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread Richard Baskett

Well what I normally do to pass very large arrays through strings.. when NOT
using sessions, I use serialize, but it sounds like you didn¹t want to
serialize..  If you give me an idea of what you are doing I might be able to
figure out the best way to pass those variables :)

And no you don't need to serialize the data when using sessions.  Sessions
themselves are serialized automatically, you don¹t need to worry about that.

Rick

We do not have to visit a mad house to find disordered minds; our planet is
the mental institution of the universe. - Unknown

 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 13:51:38 -0500
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET strings
 
 Thanks SP and Richard,
 
 Well, I tested it and it works fine with sessions, without serializing
 it. The only problem with sending it through GET url strings is that you
 can only send about 255 characters of data through to the next page. I
 was just looking to see how others pass their array values through their
 URLs. So far sessions is a winner, but maybe there's another way. Like
 what Richard suggested. But that method seems too time consuming and
 will be confusing later on since it uses enumerated arrays. Just need
 some suggestions and hints.   :)
 
 -Original Message-
 From: SP [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 1:31 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET strings
 
 
 Hi Navid
 
 Don't you have to serialize it to put it in
 sessions?
 
 -Original Message-
 From: Navid Y. [mailto:[EMAIL PROTECTED]]
 Sent: May 18, 2002 2:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] passing ARRAYs through GET strings
 
 
 Hello   :)
 
 Can anyone suggest of another way, an easier way,
 to send arrays through
 get strings, or through any other process, without
 having to serializing
 it? For example, would it be better to use
 sessions in this case? Any
 help would be greatful, thanks.  :)
 
 Navid
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit:
 http://www.php.net/unsub.php
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.361 / Virus Database: 199 - Release
 Date: 07/05/02
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.361 / Virus Database: 199 - Release
 Date: 07/05/02
 
 
 -- 
 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




RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP

Okay let me clarify, if I had an array like this I
would just use sessions this way:

$myarray = array( array('1', '2'),
  array('3', '4') );
$_SESSION['myarray'] = serialize($myarray);

Then you can use the array on any page the user
goes to by doing this:

$myarray = unserialize($_SESSION['myarray']);





-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:52 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings


Thanks SP and Richard,

Well, I tested it and it works fine with sessions,
without serializing
it. The only problem with sending it through GET
url strings is that you
can only send about 255 characters of data through
to the next page. I
was just looking to see how others pass their
array values through their
URLs. So far sessions is a winner, but maybe
there's another way. Like
what Richard suggested. But that method seems too
time consuming and
will be confusing later on since it uses
enumerated arrays. Just need
some suggestions and hints.   :)

-Original Message-
From: SP [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 1:31 PM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings


Hi Navid

Don't you have to serialize it to put it in
sessions?

-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] passing ARRAYs through GET strings


Hello   :)

Can anyone suggest of another way, an easier way,
to send arrays through
get strings, or through any other process, without
having to serializing
it? For example, would it be better to use
sessions in this case? Any
help would be greatful, thanks.  :)

Navid


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread Navid Y.

Well Rick,

Let's say I had a form with a text box and an textarea box. The text box
won't contain that many strings, but the textarea box can contain
thousands of characters, if the user wished to write that much. Both of
the fields will be contained in a single array. If I send this array
through a GET string, it will only pass 255 characters through to the
next page, and the rest of the content will be cut out of the picture as
if it never existed. Then, I thought maybe sessions would do the trick,
and it does a great job so far. So now I'm stuck with the idea that
using sessions to pass arrays, in the particular situation, would be the
best thing to do. But, out of curiousity, I wanted to know how other
people sent their arrays back and forth from one page to another. That's
all  :)   Thanks for your patience, I really appreciate it.

-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, May 18, 2002 2:12 PM
To: [EMAIL PROTECTED]; PHP General
Subject: Re: [PHP] passing ARRAYs through GET strings


Well what I normally do to pass very large arrays through strings.. when
NOT using sessions, I use serialize, but it sounds like you didn¹t want
to serialize..  If you give me an idea of what you are doing I might be
able to figure out the best way to pass those variables :)

And no you don't need to serialize the data when using sessions.
Sessions themselves are serialized automatically, you don¹t need to
worry about that.

Rick

We do not have to visit a mad house to find disordered minds; our
planet is the mental institution of the universe. - Unknown

 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 13:51:38 -0500
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET strings
 
 Thanks SP and Richard,
 
 Well, I tested it and it works fine with sessions, without serializing

 it. The only problem with sending it through GET url strings is that 
 you can only send about 255 characters of data through to the next 
 page. I was just looking to see how others pass their array values 
 through their URLs. So far sessions is a winner, but maybe there's 
 another way. Like what Richard suggested. But that method seems too 
 time consuming and will be confusing later on since it uses enumerated
arrays. Just need
 some suggestions and hints.   :)
 
 -Original Message-
 From: SP [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 1:31 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET strings
 
 
 Hi Navid
 
 Don't you have to serialize it to put it in
 sessions?
 
 -Original Message-
 From: Navid Y. [mailto:[EMAIL PROTECTED]]
 Sent: May 18, 2002 2:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] passing ARRAYs through GET strings
 
 
 Hello   :)
 
 Can anyone suggest of another way, an easier way,
 to send arrays through
 get strings, or through any other process, without
 having to serializing
 it? For example, would it be better to use
 sessions in this case? Any
 help would be greatful, thanks.  :)
 
 Navid
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit:
 http://www.php.net/unsub.php
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.361 / Virus Database: 199 - Release
 Date: 07/05/02
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.361 / Virus Database: 199 - Release
 Date: 07/05/02
 
 
 --
 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




RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread Navid Y.

No need to serialize arrays in PHP 4.0. They work seamlessly, as if
you've passed a regular variable through. Thanks for your help and
patience  :)

-Original Message-
From: SP [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, May 18, 2002 2:27 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET strings


Okay let me clarify, if I had an array like this I
would just use sessions this way:

$myarray = array( array('1', '2'),
  array('3', '4') );
$_SESSION['myarray'] = serialize($myarray);

Then you can use the array on any page the user
goes to by doing this:

$myarray = unserialize($_SESSION['myarray']);





-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:52 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings


Thanks SP and Richard,

Well, I tested it and it works fine with sessions,
without serializing
it. The only problem with sending it through GET
url strings is that you
can only send about 255 characters of data through
to the next page. I
was just looking to see how others pass their
array values through their
URLs. So far sessions is a winner, but maybe
there's another way. Like
what Richard suggested. But that method seems too
time consuming and
will be confusing later on since it uses
enumerated arrays. Just need
some suggestions and hints.   :)

-Original Message-
From: SP [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 1:31 PM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings


Hi Navid

Don't you have to serialize it to put it in
sessions?

-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] passing ARRAYs through GET strings


Hello   :)

Can anyone suggest of another way, an easier way,
to send arrays through
get strings, or through any other process, without
having to serializing
it? For example, would it be better to use
sessions in this case? Any
help would be greatful, thanks.  :)

Navid


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread Richard Baskett

Hey no problem.. That's what this list is for.. Asking questions and
answering them :)

I just use sessions to pass a lot of variables to a lot of pages.. Or some
variables to a lot of pages.. Usually for site authorization that's about
it.  When I just want to pass arrays to another page, I use serialization,
it's the fastest easiest way in my opinion and you don¹t have to mess with
sessions since in my opinion it would be overkill :)

Rick

Nobody will ever win the Battle of the Sexes. There's just too much
fraternizing with the enemy. - Henry Kissinger

 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 14:43:27 -0500
 To: 'PHP General' [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET strings
 
 Well Rick,
 
 Let's say I had a form with a text box and an textarea box. The text box
 won't contain that many strings, but the textarea box can contain
 thousands of characters, if the user wished to write that much. Both of
 the fields will be contained in a single array. If I send this array
 through a GET string, it will only pass 255 characters through to the
 next page, and the rest of the content will be cut out of the picture as
 if it never existed. Then, I thought maybe sessions would do the trick,
 and it does a great job so far. So now I'm stuck with the idea that
 using sessions to pass arrays, in the particular situation, would be the
 best thing to do. But, out of curiousity, I wanted to know how other
 people sent their arrays back and forth from one page to another. That's
 all  :)   Thanks for your patience, I really appreciate it.
 
 -Original Message-
 From: Richard Baskett [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 2:12 PM
 To: [EMAIL PROTECTED]; PHP General
 Subject: Re: [PHP] passing ARRAYs through GET strings
 
 
 Well what I normally do to pass very large arrays through strings.. when
 NOT using sessions, I use serialize, but it sounds like you didn¹t want
 to serialize..  If you give me an idea of what you are doing I might be
 able to figure out the best way to pass those variables :)
 
 And no you don't need to serialize the data when using sessions.
 Sessions themselves are serialized automatically, you don¹t need to
 worry about that.
 
 Rick
 
 We do not have to visit a mad house to find disordered minds; our
 planet is the mental institution of the universe. - Unknown
 
 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 13:51:38 -0500
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET strings
 
 Thanks SP and Richard,
 
 Well, I tested it and it works fine with sessions, without serializing
 
 it. The only problem with sending it through GET url strings is that
 you can only send about 255 characters of data through to the next
 page. I was just looking to see how others pass their array values
 through their URLs. So far sessions is a winner, but maybe there's
 another way. Like what Richard suggested. But that method seems too
 time consuming and will be confusing later on since it uses enumerated
 arrays. Just need
 some suggestions and hints.   :)
 
 -Original Message-
 From: SP [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 1:31 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET strings
 
 
 Hi Navid
 
 Don't you have to serialize it to put it in
 sessions?
 
 -Original Message-
 From: Navid Y. [mailto:[EMAIL PROTECTED]]
 Sent: May 18, 2002 2:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] passing ARRAYs through GET strings
 
 
 Hello   :)
 
 Can anyone suggest of another way, an easier way,
 to send arrays through
 get strings, or through any other process, without
 having to serializing
 it? For example, would it be better to use
 sessions in this case? Any
 help would be greatful, thanks.  :)
 
 Navid
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit:
 http://www.php.net/unsub.php
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.361 / Virus Database: 199 - Release
 Date: 07/05/02
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.361 / Virus Database: 199 - Release
 Date: 07/05/02
 
 
 --
 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
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP

Hey cool, didn't know that.

-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 3:45 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings


No need to serialize arrays in PHP 4.0. They work
seamlessly, as if
you've passed a regular variable through. Thanks
for your help and
patience  :)

-Original Message-
From: SP [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 2:27 PM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings


Okay let me clarify, if I had an array like this I
would just use sessions this way:

$myarray = array( array('1', '2'),
  array('3', '4') );
$_SESSION['myarray'] = serialize($myarray);

Then you can use the array on any page the user
goes to by doing this:

$myarray = unserialize($_SESSION['myarray']);





-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:52 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings


Thanks SP and Richard,

Well, I tested it and it works fine with sessions,
without serializing
it. The only problem with sending it through GET
url strings is that you
can only send about 255 characters of data through
to the next page. I
was just looking to see how others pass their
array values through their
URLs. So far sessions is a winner, but maybe
there's another way. Like
what Richard suggested. But that method seems too
time consuming and
will be confusing later on since it uses
enumerated arrays. Just need
some suggestions and hints.   :)

-Original Message-
From: SP [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 1:31 PM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings


Hi Navid

Don't you have to serialize it to put it in
sessions?

-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] passing ARRAYs through GET strings


Hello   :)

Can anyone suggest of another way, an easier way,
to send arrays through
get strings, or through any other process, without
having to serializing
it? For example, would it be better to use
sessions in this case? Any
help would be greatful, thanks.  :)

Navid


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP

Rick, what exactly do you mean by using
serialization without sessions?  how do you do
that?

-Original Message-
From: Richard Baskett
[mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 4:31 PM
To: [EMAIL PROTECTED]; PHP General
Subject: Re: [PHP] passing ARRAYs through GET
strings


Hey no problem.. That's what this list is for..
Asking questions and
answering them :)

I just use sessions to pass a lot of variables to
a lot of pages.. Or some
variables to a lot of pages.. Usually for site
authorization that's about
it.  When I just want to pass arrays to another
page, I use serialization,
it's the fastest easiest way in my opinion and you
don¹t have to mess with
sessions since in my opinion it would be overkill
:)

Rick

Nobody will ever win the Battle of the Sexes.
There's just too much
fraternizing with the enemy. - Henry Kissinger

 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 14:43:27 -0500
 To: 'PHP General' [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET
strings

 Well Rick,

 Let's say I had a form with a text box and an
textarea box. The text box
 won't contain that many strings, but the
textarea box can contain
 thousands of characters, if the user wished to
write that much. Both of
 the fields will be contained in a single array.
If I send this array
 through a GET string, it will only pass 255
characters through to the
 next page, and the rest of the content will be
cut out of the picture as
 if it never existed. Then, I thought maybe
sessions would do the trick,
 and it does a great job so far. So now I'm stuck
with the idea that
 using sessions to pass arrays, in the particular
situation, would be the
 best thing to do. But, out of curiousity, I
wanted to know how other
 people sent their arrays back and forth from one
page to another. That's
 all  :)   Thanks for your patience, I really
appreciate it.

 -Original Message-
 From: Richard Baskett
[mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 2:12 PM
 To: [EMAIL PROTECTED]; PHP General
 Subject: Re: [PHP] passing ARRAYs through GET
strings


 Well what I normally do to pass very large
arrays through strings.. when
 NOT using sessions, I use serialize, but it
sounds like you didn¹t want
 to serialize..  If you give me an idea of what
you are doing I might be
 able to figure out the best way to pass those
variables :)

 And no you don't need to serialize the data when
using sessions.
 Sessions themselves are serialized
automatically, you don¹t need to
 worry about that.

 Rick

 We do not have to visit a mad house to find
disordered minds; our
 planet is the mental institution of the
universe. - Unknown

 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 13:51:38 -0500
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET
strings

 Thanks SP and Richard,

 Well, I tested it and it works fine with
sessions, without serializing

 it. The only problem with sending it through
GET url strings is that
 you can only send about 255 characters of data
through to the next
 page. I was just looking to see how others pass
their array values
 through their URLs. So far sessions is a
winner, but maybe there's
 another way. Like what Richard suggested. But
that method seems too
 time consuming and will be confusing later on
since it uses enumerated
 arrays. Just need
 some suggestions and hints.   :)

 -Original Message-
 From: SP [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 1:31 PM
 To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET
strings


 Hi Navid

 Don't you have to serialize it to put it in
 sessions?

 -Original Message-
 From: Navid Y. [mailto:[EMAIL PROTECTED]]
 Sent: May 18, 2002 2:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] passing ARRAYs through GET
strings


 Hello   :)

 Can anyone suggest of another way, an easier
way,
 to send arrays through
 get strings, or through any other process,
without
 having to serializing
 it? For example, would it be better to use
 sessions in this case? Any
 help would be greatful, thanks.  :)

 Navid


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit:
 http://www.php.net/unsub.php


 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.361 / Virus Database: 199 -
Release
 Date: 07/05/02

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.361 / Virus Database: 199 -
Release
 Date: 07/05/02


 --
 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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php


---
Incoming mail is certified Virus Free.
Checked

Re: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread Richard Baskett

Well you can serialize an array using the serialize function then pass it
through the url then unserialize it on the next page using the unserialize
function.  If you check out http://www.php.net/serialize it will give you
some examples.  It is quite similar to sessions in that sessions also
serialize the data, but there are subtle differences.  You will need to use
a couple other functions with serialize when passing through the URL, but
that is documented on the page I just gave you :)

If you have any other questions concerning it please do not hesitate to ask
me :)

Rick

Until you have learned to be tolerant with those who do not always agree
with you; until you have cultivated the habit of saying some kind word of
those whom you do not admire; until you have formed the habit of looking for
the good instead of the bad there is in others, you will be neither
successful nor happy. - Napolean Hill


 From: SP [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 16:35:00 -0400
 To: Richard Baskett [EMAIL PROTECTED], [EMAIL PROTECTED], PHP
 General [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET strings
 
 Rick, what exactly do you mean by using
 serialization without sessions?  how do you do
 that?
 
 -Original Message-
 From: Richard Baskett
 [mailto:[EMAIL PROTECTED]]
 Sent: May 18, 2002 4:31 PM
 To: [EMAIL PROTECTED]; PHP General
 Subject: Re: [PHP] passing ARRAYs through GET
 strings
 
 
 Hey no problem.. That's what this list is for..
 Asking questions and
 answering them :)
 
 I just use sessions to pass a lot of variables to
 a lot of pages.. Or some
 variables to a lot of pages.. Usually for site
 authorization that's about
 it.  When I just want to pass arrays to another
 page, I use serialization,
 it's the fastest easiest way in my opinion and you
 don¹t have to mess with
 sessions since in my opinion it would be overkill
 :)
 
 Rick
 
 Nobody will ever win the Battle of the Sexes.
 There's just too much
 fraternizing with the enemy. - Henry Kissinger
 
 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 14:43:27 -0500
 To: 'PHP General' [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET
 strings
 
 Well Rick,
 
 Let's say I had a form with a text box and an
 textarea box. The text box
 won't contain that many strings, but the
 textarea box can contain
 thousands of characters, if the user wished to
 write that much. Both of
 the fields will be contained in a single array.
 If I send this array
 through a GET string, it will only pass 255
 characters through to the
 next page, and the rest of the content will be
 cut out of the picture as
 if it never existed. Then, I thought maybe
 sessions would do the trick,
 and it does a great job so far. So now I'm stuck
 with the idea that
 using sessions to pass arrays, in the particular
 situation, would be the
 best thing to do. But, out of curiousity, I
 wanted to know how other
 people sent their arrays back and forth from one
 page to another. That's
 all  :)   Thanks for your patience, I really
 appreciate it.
 
 -Original Message-
 From: Richard Baskett
 [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 2:12 PM
 To: [EMAIL PROTECTED]; PHP General
 Subject: Re: [PHP] passing ARRAYs through GET
 strings
 
 
 Well what I normally do to pass very large
 arrays through strings.. when
 NOT using sessions, I use serialize, but it
 sounds like you didn¹t want
 to serialize..  If you give me an idea of what
 you are doing I might be
 able to figure out the best way to pass those
 variables :)
 
 And no you don't need to serialize the data when
 using sessions.
 Sessions themselves are serialized
 automatically, you don¹t need to
 worry about that.
 
 Rick
 
 We do not have to visit a mad house to find
 disordered minds; our
 planet is the mental institution of the
 universe. - Unknown
 
 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 13:51:38 -0500
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET
 strings
 
 Thanks SP and Richard,
 
 Well, I tested it and it works fine with
 sessions, without serializing
 
 it. The only problem with sending it through
 GET url strings is that
 you can only send about 255 characters of data
 through to the next
 page. I was just looking to see how others pass
 their array values
 through their URLs. So far sessions is a
 winner, but maybe there's
 another way. Like what Richard suggested. But
 that method seems too
 time consuming and will be confusing later on
 since it uses enumerated
 arrays. Just need
 some suggestions and hints.   :)
 
 -Original Message-
 From: SP [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 1:31 PM
 To: [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET
 strings
 
 
 Hi Navid
 
 Don't you have to serialize it to put it in
 sessions?
 
 -Original Message-
 From: Navid Y. [mailto:[EMAIL PROTECTED

RE: [PHP] passing ARRAYs through GET strings

2002-05-18 Thread SP

Thanks Rick, that's what I thinking.  Thought I
was missing something.


-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 4:49 PM
To: SP; PHP General
Subject: Re: [PHP] passing ARRAYs through GET
strings


Well you can serialize an array using the
serialize function then pass it
through the url then unserialize it on the next
page using the unserialize
function.  If you check out
http://www.php.net/serialize it will give you
some examples.  It is quite similar to sessions in
that sessions also
serialize the data, but there are subtle
differences.  You will need to use
a couple other functions with serialize when
passing through the URL, but
that is documented on the page I just gave you :)

If you have any other questions concerning it
please do not hesitate to ask
me :)

Rick

Until you have learned to be tolerant with those
who do not always agree
with you; until you have cultivated the habit of
saying some kind word of
those whom you do not admire; until you have
formed the habit of looking for
the good instead of the bad there is in others,
you will be neither
successful nor happy. - Napolean Hill


 From: SP [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 16:35:00 -0400
 To: Richard Baskett [EMAIL PROTECTED],
[EMAIL PROTECTED], PHP
 General [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET
strings

 Rick, what exactly do you mean by using
 serialization without sessions?  how do you do
 that?

 -Original Message-
 From: Richard Baskett
 [mailto:[EMAIL PROTECTED]]
 Sent: May 18, 2002 4:31 PM
 To: [EMAIL PROTECTED]; PHP General
 Subject: Re: [PHP] passing ARRAYs through GET
 strings


 Hey no problem.. That's what this list is for..
 Asking questions and
 answering them :)

 I just use sessions to pass a lot of variables
to
 a lot of pages.. Or some
 variables to a lot of pages.. Usually for site
 authorization that's about
 it.  When I just want to pass arrays to another
 page, I use serialization,
 it's the fastest easiest way in my opinion and
you
 don¹t have to mess with
 sessions since in my opinion it would be
overkill
 :)

 Rick

 Nobody will ever win the Battle of the Sexes.
 There's just too much
 fraternizing with the enemy. - Henry Kissinger

 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 14:43:27 -0500
 To: 'PHP General' [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET
 strings

 Well Rick,

 Let's say I had a form with a text box and an
 textarea box. The text box
 won't contain that many strings, but the
 textarea box can contain
 thousands of characters, if the user wished to
 write that much. Both of
 the fields will be contained in a single array.
 If I send this array
 through a GET string, it will only pass 255
 characters through to the
 next page, and the rest of the content will be
 cut out of the picture as
 if it never existed. Then, I thought maybe
 sessions would do the trick,
 and it does a great job so far. So now I'm
stuck
 with the idea that
 using sessions to pass arrays, in the
particular
 situation, would be the
 best thing to do. But, out of curiousity, I
 wanted to know how other
 people sent their arrays back and forth from
one
 page to another. That's
 all  :)   Thanks for your patience, I really
 appreciate it.

 -Original Message-
 From: Richard Baskett
 [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 2:12 PM
 To: [EMAIL PROTECTED]; PHP General
 Subject: Re: [PHP] passing ARRAYs through GET
 strings


 Well what I normally do to pass very large
 arrays through strings.. when
 NOT using sessions, I use serialize, but it
 sounds like you didn¹t want
 to serialize..  If you give me an idea of what
 you are doing I might be
 able to figure out the best way to pass those
 variables :)

 And no you don't need to serialize the data
when
 using sessions.
 Sessions themselves are serialized
 automatically, you don¹t need to
 worry about that.

 Rick

 We do not have to visit a mad house to find
 disordered minds; our
 planet is the mental institution of the
 universe. - Unknown

 From: Navid Y. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 May 2002 13:51:38 -0500
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] passing ARRAYs through GET
 strings

 Thanks SP and Richard,

 Well, I tested it and it works fine with
 sessions, without serializing

 it. The only problem with sending it through
 GET url strings is that
 you can only send about 255 characters of data
 through to the next
 page. I was just looking to see how others
pass
 their array values
 through their URLs. So far sessions is a
 winner, but maybe there's
 another way. Like what Richard suggested. But
 that method seems too
 time consuming and will be confusing later on
 since it uses enumerated
 arrays. Just need
 some suggestions and hints.   :)

 -Original Message-
 From: SP [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 18, 2002 1:31 PM
 To: [EMAIL