RE: POST arrays?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx] 
Enviado el: Jueves, 20 de Abril de 2006 08:28 a.m.
Para: William Stokes; php-general@xxxxxxxxxxxxx
Asunto: Re:  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

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux