[PHP] problem with code (almost fixed)

2002-11-19 Thread Yan Grossman
Hi,
I fixed my code to handle forms using $_REQUEST. Just having problem with
the fields with multiple contents...
the one you have to call  like field[0], field[1],etc...

How do I use the brackets inside brackets?
my case is this:
Thanks.
I have fixed everything with $_REQUEST
but I am having problem with the multiple fields, like this:
$message .= (hotel =  . $_REQUEST['pac_hot[0]'] .  - .
$_REQUEST['pac_hot[1]'].  -  .$_REQUEST['pac_hot[2]'] .  -
.$_REQUEST['pac_hot[3]'] . \n);

How am I going to use the brackets inside the brackets?
Thanks



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




RE: [PHP] problem with code (almost fixed)

2002-11-19 Thread Noor Dawod
You'd write something like:

$_REQUEST['pac_hot'][0], $_REQUEST['pac_hot'][1] and so on.

Noor


 -Original Message-
 From: Yan Grossman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 19, 2002 12:07 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] problem with code (almost fixed)
 
 
 Hi,
 I fixed my code to handle forms using $_REQUEST. Just having 
 problem with
 the fields with multiple contents...
 the one you have to call  like field[0], field[1],etc...
 
 How do I use the brackets inside brackets?
 my case is this:
 Thanks.
 I have fixed everything with $_REQUEST
 but I am having problem with the multiple fields, like this:
 $message .= (hotel =  . $_REQUEST['pac_hot[0]'] .  - .
 $_REQUEST['pac_hot[1]'].  -  .$_REQUEST['pac_hot[2]'] .  -
 .$_REQUEST['pac_hot[3]'] . \n);
 
 How am I going to use the brackets inside the brackets?
 Thanks
 
 
 
 -- 
 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