Ver Mensaje Individual
  #3 (permalink)  
Antiguo 31/07/2009, 01:20
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 8 meses
Puntos: 139
Respuesta: PASAR valor de un SELECT a otra pagina

Código HTML:
<html>
<head>
</head>
<body>

<form id="alta" name="alta" method="post" action="pagina2.php">

<select name="prueba[]" multiple="multiple">

<option value"" selected="selected"> selecciona</option>
<option value"1"> op1</option>
<option value"2"> op2</option>
<option value"3"> op3</option>


</select>
<br>
<input type="submit" value="Enviar">
</form>
</body>
</html> 

Código PHP:
$prueba $_POST['prueba'];
foreach(
$prueba as $row){
echo 
$row;