Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/12/2002, 02:21
DaneelR
 
Fecha de Ingreso: julio-2002
Ubicación: Elche
Mensajes: 153
Antigüedad: 21 años, 9 meses
Puntos: 0
Leer <select> en PHP

No consigo ver el error que estoy cometiendo en este script para leer el valor del <select>, a ver si alguien puede ayudarme:

<html>
<head>
<title>Pru</title>
</head>
<body>

<form action="pruform.php" method="post">
<table>
<tr>
<td>
<select name="loc">
<option value="0">Todas</option>
<option value="1">Opcion 1</option>
<option value="2">Opcion 2</option>
<option value="3">Opcion 3</option>
</select>
</td>
<td><input type="submit" value="Enviar"></td>
</tr>
</table>
</form>

</body>
</html>

Y en el fichero PHP:

<?php
echo $loc;
?>

Al mandar el formulario me da un error HTTP 500 error interno del servidor.


Muchas gracias y un saludo.
__________________
Hazlo o no lo hagas, pero nunca lo intentes

www.clubfronteniselche.com