Re: [PHP] Recover POST form

2004-11-07 Thread Ligaya Turmelle
Try using the $_POST.
Reference:
http://www.php.net/language.variables.predefined
Respectfully,
Ligaya Turmelle
Christian Ista wrote:
Hello,
In a PHP page I use a form with POST method.
I'd like in the action page recover all the variable posted. Could you tell 
me how to do that ?

Thanks,
Christian, 


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

Re: [PHP] Recover POST form

2004-11-06 Thread M. Sokolewicz
Christian Ista wrote:
echo '';
print_r($_POST);
echo '';

I have something like that :
Array
(
[5980915] => on
[ToDo5980915] => N
[5941846] => on
[ToDo5941846] => N
[5916500] => on
[ToDo5916500] => N
[5907115] => on
[ToDo5907115] => N
[5900019] => on
[ToDo5900019] => N
[5899239] => on
[ToDo5899239] => N
[5897854] => on
[ToDo5897854] => N
[5896483] => on
[ToDo5896483] => N
[5893286] => on
[ToDo5893286] => N
[5865056] => on
[ToDo5865056] => N
[fa] => test
)
I'd like to access this array in a for loop from an array from 0 to 21 
(in this case). How to transform this array ?

I tried $_POST[2] but not work 
Thanks, 
look. Read a BASIC tutorial about how PHP works, and how to write 
scripts in PHP. Once you've done that, return here, and I guarantee you, 
the questions you've asked will be no more.

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


Re: [PHP] Recover POST form

2004-11-06 Thread Christian Ista

> I tried $_POST[2] but not work 

with arrays_keys :)

Thanks, 

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



Re: [PHP] Recover POST form

2004-11-06 Thread Christian Ista

> echo '';
> print_r($_POST);
> echo '';

I have something like that :

Array
(
[5980915] => on
[ToDo5980915] => N
[5941846] => on
[ToDo5941846] => N
[5916500] => on
[ToDo5916500] => N
[5907115] => on
[ToDo5907115] => N
[5900019] => on
[ToDo5900019] => N
[5899239] => on
[ToDo5899239] => N
[5897854] => on
[ToDo5897854] => N
[5896483] => on
[ToDo5896483] => N
[5893286] => on
[ToDo5893286] => N
[5865056] => on
[ToDo5865056] => N
[fa] => test
)

I'd like to access this array in a for loop from an array from 0 to 21 
(in this case). How to transform this array ?

I tried $_POST[2] but not work 

Thanks, 

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



Re: [PHP] Recover POST form

2004-11-06 Thread Greg Donald
On Sat, 6 Nov 2004 23:32:23 +0100, Christian Ista <[EMAIL PROTECTED]> wrote:
> In a PHP page I use a form with POST method.
> 
> I'd like in the action page recover all the variable posted. Could you tell
> me how to do that ?

They are available in the $_POST array.

echo '';
print_r($_POST);
echo '';


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



[PHP] Recover POST form

2004-11-06 Thread Christian Ista
Hello,

In a PHP page I use a form with POST method.

I'd like in the action page recover all the variable posted. Could you tell 
me how to do that ?

Thanks,

Christian, 

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