ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Documento


Enviado por   •  23 de Abril de 2013  •  240 Palabras (1 Páginas)  •  295 Visitas

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<title> Agregar </title>

<link href="agenda.css" rel="stylesheet" type="text/css"/>

<meta http-equiv="content-type" content="text/html;charset=utf-8" />

<meta name="generator" content="Geany 0.18" />

</head>

<body>

<div id="total">

<div id="todo">

<div id="barra">

<image src="barra.jpg" align="center"></image>

</div>

<div id="contenido">

<div id="areacambiante">

<?php

if (isset ($_POST['Enviar'])){

$my_sql_connect=mysql_connect("sql109.260mb.org", "mb260_10634276", "artrak");

$base=mysql_select_db("mb260_10634276_agenda");

$codigo=$_POST['codigo'];

$nombre=$_POST['nombre'];

$apaterno=$_POST['apaterno'];

$amaterno=$_POST['amaterno'];

$fechanac=$_POST['fechanac'];

$domicilio=$_POST['domicilio'];

$telcasa=$_POST['telcasa'];

$telcel=$_POST['telcel'];

$direcweb=$_POST['direcweb'];

$correo=$_POST['correo'];

$edociv=$_POST['edociv'];

$tipsangre=$_POST['tipsangre'];

$alergias=$_POST['alergias'];

$sexo=$_POST['sexo'];

$edad=$_POST['edad'];

$estatura=$_POST['estatura'];

$consulta="insert into contactos (codigo, nombre, apaterno, amaterno, fechanac, domicilio, telcasa, telcel, direcweb, correo, edociv, tipsangre, alergias, sexo, edad, estatura) values('$codigo', '$nombre', '$apaterno', '$amaterno', '$fechanac','$domicilio', '$telcasa', '$telcel', '$direcweb', '$correo','$edociv', '$tipsangre', '$alergias', '$sexo', '$edad','$estatura')";

$mysql_query=mysql_query($consulta, $my_sql_connect);

}

?>

<form action="agregar.php" method="post">

<table width="200" border="1" align="center" bgcolor="#D8D8D8">

<tr>

<td><span class="Estilo1">Codigo:</span></td>

<td><input name="codigo" type="text"/></td>

<td><span class="Estilo1">Nombre:</span></td>

<td><input name="nombre" type="text"/></td>

</tr>

<tr>

<td><span class="Estilo1">APaterno:</span></td>

<td><input name="apaterno" type="text"/></td>

<td><span class="Estilo1">AMaterno:</span></td>

<td><input name="amaterno" type="text"/></td>

</tr>

...

Descargar como (para miembros actualizados)  txt (4.6 Kb)  
Leer 1 página más »
Disponible sólo en Clubensayos.com