Diferencia entre revisiones de «Programación en PHP/Intermedio/Regexp»
Contenido eliminado Contenido añadido
Página creada con '<?php if (isset($_POST['muestra'])) { echo 'hola, '. htmlentities($_POST['nombre']) .', tu animal favorito es:'. htmlentities($_POST['animal']); } else { ?> <from method="post...' |
Sin resumen de edición |
||
Línea 1:
<source lang="php">
<?php
header('Content-type: text/html; charset=utf-8');
if (isset($_POST['muestra'])) {
} else {▼
$html = '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" >
▲else {
¿Cuál es tu nombre?
<
¿
<option>
</select>▼
▲<option>gato</option>
<input type="submit" name="muestra" value="Siguiente" />▼
▲<option>ave</option>
</form>';▼
▲</select>
echo $html;
▲<input type="submit" name="muestra" value="Siguiente">
▲</form>
}
?>
</source>
|