This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Ejercicio 2</title> | |
</head> | |
<body> | |
<form action="Ej2.php" method="post" id="frm1" name="frm1"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Conexion // se declara una clase para hacer la conexion con la base de datos | |
{ | |
var $con; | |
function Conexion() | |
{ | |
// se definen los datos del servidor de base de datos | |
$conection['server']="localhost"; //host | |
$conection['user']="alumno"; // usuario | |
$conection['pass']="alumnodaw"; //password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Ejercicio 1 html</title> | |
</head> | |
<body><!--Creamos un formulario con varios campos y el boton de enviar los datos al Ej1.php--> | |
<form action="Ej1.php" method="post" id="frm1" name="frm1"> | |
<label id="nombre">Nombre:</label><input type="text" name="name" id="name"/><br /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Ejercicio 1</title> | |
</head> | |
<!--Recuperamos y mostramos en texto plano los datos recuperados del formulario--> | |
<?php | |
$name=$_POST["name"]; | |
$surname=$_POST["surname"]; |
NewerOlder