eljosu10

eljosu10

Y el código que tengo es el siguiente: <?php function php() { if (isset($_POST) && $_POST!="") { echo "Hola "
 Castilla y León, España @eljosu10 desde - visto
Preguntar

Experiencia

Y el código que tengo es el siguiente:
<?php
function php()
{
if (isset($_POST['nombre']) && $_POST['nombre']!="")
{
echo "Hola ".$_POST['nombre'];
}
else
{
if (isset($_POST['nombre']));
{
echo "Rellena los campos";
}
}
if(is_numeric($_POST['cp']) && $_POST['cp']!="") {
}
else {
echo "Error, debes insertar un campo numérico";
}
}
?>
<html>
<head>
<title>Ejercicio44</title>
</head>
<body>
<form name="form1" method="POST">
<b>Escribe tu nombre:</b> <input type="text" name="nombre" size="35" maxlength="35" svalue="Introduce aquí tu nombre" >
<br><br>
<b>1º Apellido:</b> <input type="text" name="apellido" size="35" maxlength="35" value="Introduce aquí tu 1º apellido" >
<br><br>
<b>2º Apellido:</b> <input type="text" name="apelli2" size="35" maxlength="35" value="Introduce aquí tu 2º apellido" >
<br><br>
<b>Introduce tu fecha de nacimiento:</b> <input type="text" name="fecha" size="35" maxlength="10" value="Ejemplo: 20-09-1992">
<br><br>
<b>Introduce tu dirección:</b> <input type="text" name="direccion" size="35" maxlength="50" value="Introduce aquí tu Dirección">
<br><br>
<b>Introduce tu población:</b> <input type="text" name="población" size="35" maxlength="25" value="Introduce aquí tu población">
<br><br>
<b>Introduce tu Código Postal:</b> <input type="text" maxlength="5" size="35" name="cp" value="Introduce aquí tu código postal" onClick="is_numeric"/>
<br><br>
<b>Sexo:<b>&nbsp <b>Hombre</b> <input name="sexo" type="radio" value="Hombre">
<b>Mujer</b> <input name="sexo" type="radio" value="Mujer">
<br><br>
<b>Módulos:</b>
<br>
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp <input name="modulo" type="checkbox" value="MPI"> MPI
<br>
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp <input name="modulo" type="checkbox" value="IMSI"> IMSI
<br>
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp <input name="modulo" type="checkbox" value="Base de Datos"> BASE DE DATOS
<br>
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp <input name="modulo" type="checkbox" value="FOL"> FOL
<br>
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp <input name="modulo" type="checkbox" value="AGP"> AGP
<br><br>
<b>Población dónde hacer los módulos:</b>
<br><br>
<select name="modulo" size="6" multiple>
<option selected>--Elige una población--</option>
<option value="modulo">Valencia</option>
<option>Bruselas</option>
<option>Sao Paulo</option>
<option> Chicago</option>
</select>
<br><br>
<b>Introduce si deseas una sugerencia</b>
<br><br>
<textarea name="textarea" cols="30" rows="3">Escriba si lo deseas una sugerencia</textarea>
<br>
<br>
<input name="Enviar" type="submit" class="Estilo29" id="Enviar" value="Enviar" onclick="php()">
</form>
</body>
</html>

Aún no ha realizado ninguna actividad pública.