Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/03/2012, 13:24
Avatar de informacionsys
informacionsys
 
Fecha de Ingreso: mayo-2011
Ubicación: Bogota D.C
Mensajes: 793
Antigüedad: 12 años, 11 meses
Puntos: 76
Respuesta: Recibir variable de un SELECT

hola

para recibir el valor de tu combo - select debes usar un formulario y usar el metodo post ....

en tu html :

Código HTML:
Ver original
  1. <form action="recibir.php" method="POST" />
  2. <select name='formato' id='formato'>
  3.       <option value='0'>Formato</option>
  4.       <option value='1'>NEGRITA</option>
  5.       <option value='2'>CURSIVA</option>
  6.       <option value='3'>AMBAS</option>
  7. <input type="submit" value="Enviar">
  8. </form>

en el archivo recibir.php

Código PHP:
Ver original
  1. $formato = $_POST['formato'];
  2. echo $formato;

vale...