Entradas

Mostrando entradas de agosto, 2017

FORMULARIO PARA CONECTAR A MYSQL

<html> <head> <title> </title> <meta charset="utf-8"> <style> #tabl{ border: 2px solid red ; border-radius: 12px; background-color:#A9D0F5; } input{ font-size:12px; width:300px; color:blue; } td{ color:white; } </style> </head> <body> <form action="guardar.php" method="POST"> <table id="tabl" border=0 width=400 align=center> <tr> <td colspan=2 align="center">  INGRESAR DATOS </td> </tr> <tr> <td>Nombre</td> <td> <input type="text" required name="nombre" size=44px placeholder="ingrese nombre">  </td> </tr> <tr> <td>Correo</td> <td> <input type="text" required name="correo" placeholder="ingrese el correo" > </td> </tr> <tr> <td>Dirección</td> <td...

INSERTAR FECHA EN PHP

Para poder insertar la fecha con un echo en php realizamos el siguiente código. <? echo"hoy es dia".date("d/n/y"); ?> ________________________________________________________________________________ esta parte es para realizar un for que nos permite ingresar nuestro año de nacimiento y poder imprimir en pantalla con un echo. <html> <head> <title>formulario</title> <meta charset="utf-8"> </head> <style> h1{ font-size:25px; color:#1268BA; } table{ border:2px solid #1268BA; border-radius:12px; } option,select{ width:100px; } </style> <body> <form action="fechas.php" method="post"> <table border="0" align="center" width="400"> <tr> <td colspan="2" align="center"><h1>INGRESE SU FECHA DE NACIMIENTO</h1></td> </tr> ...