Surround your variables with {} curly braces.
--
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/
Quoting Bill Hudspeth <[EMAIL PROTECTED]>:
> I am trying to write a function that builds a multiple-choice drop down
> list. As such, I need to specify an ar
I am trying to write a function that builds a multiple-choice drop down
list. As such, I need to specify an array in the name attribute of the
tag. I am trying to pass a parameter to the function which gets
used as this name attribute, but seem to be having problems with the square
brackets. In t
re is mush better way, I'm sure. Can somebody tell
me?
Afan Pasalic
-Original Message-
From: afan [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 3:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] passing array with form
HI to all,
I have a little, simple form and after submitting,
HI to all,
I have a little, simple form and after submitting, together with that
information I have to pass an array with other info. How?
Let's say array is called $Name
I tried this:
$Name2 = addslashes(serialize($Name));
On screen:
a:5:{i:0;s:13:\"Name 1\";i:1;s:6:\"Name 2\";i:2;s:10:\"Name
Use htmlspecialchars() instead of addslashes().
Different standard has different methods to escape special characters.
Read relevant document for that.
Regards,
--
Yasuo Ohgaki
""afan"" <[EMAIL PROTECTED]> wrote in message
002a01c0b957$b21b97e0$0e1f49d1@07dzh2k322">news:002a01c0b957$b21b97e0$0
hi guys,
my problem is how to pass an array to other page. E.g. I have an array of randomly
choose numbers,
11, 7, 5, 10, 6
After I serialize that array I'm getting
a:5:{i:0;s:2:"11";i:1;s:1:"7";i:2;s:1:"5";i:3;s:2:"10";i:4;s:1:"6";}
Then I addslashes:
a:5:{i:0;s:2:\"11\";i:1;s:1:\"7\";i:2;s:1:\"