RE: [PHP] POST arrays?
| From: | Ing. Edwin Cruz | Date: | Thu, 20 Apr 2006 14:35:20 +0000 |
| Subject: | RE: [PHP] POST arrays? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234395@lists.php.net to get a copy of this message | ||
I'd try this:
<?php
$arr_siirto = array(1,2,3);
print_r($arr_siirto);
$arse = $arr_siirto;
print_r($arse);
Foreach($arr_siirto as $value){
echo "<input type=text name=\"arr_siirto[]\" values='$value'>";
}
?>
And when submit do this:
<?
$arr_sirto = $_REQUEST['arr_siirto'];
Print_r($arr_sirto);
?>
Regards!
Edwin.
-----Mensaje original-----
De: tedd [mailto:tedd@sperling.com]
Enviado el: Jueves, 20 de Abril de 2006 08:28 a.m.
Para: William Stokes; php-general@lists.php.net
Asunto: Re: [PHP] POST arrays?
At 3:55 PM +0300 4/20/06, William Stokes wrote:
>BTW, can sessions and $POST be mixed? If yes is there any reason what
>so ever to do that?
Yes, you can use sessions, post, get, and cookies all in the same
script if you want.
Yes, there can be reasons to do that.
tedd
--
----------------------------------------------------------------------------
----
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php