Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/12/2007, 14:28
wign
 
Fecha de Ingreso: abril-2006
Mensajes: 8
Antigüedad: 18 años, 1 mes
Puntos: 1
Re: guardar resultasdo de foreach() en una variable global

Pero si tiene el Array Check[] no sería mas facil hacer altiro un implode, aparte de mas rapido?

Código PHP:

<?php
if(isset($_POST['check'])) {

    
/* Se hace el implode de Check() */

    
$var impode (","$_POST['check'])

}
?>


<form action="<?=$_SERVER['PHP_SELF'?>" method="post">
Opción 1 <input type="checkbox" name="check[]" value="1" onclick="maxcheck(this)"><br>
Opción 2 <input type="checkbox" name="check[]" value="2" onclick="maxcheck(this)"><br>
Opción 3 <input type="checkbox" name="check[]" value="3" onclick="maxcheck(this)"><br>
Opción 4 <input type="checkbox" name="check[]" value="4" onclick="maxcheck(this)"><br><br>
<input type="submit" name="submit" value="enviar">
</form>