Este documento describe los fundamentos de la gestión de formularios en PHP, incluyendo el uso de los métodos POST y GET para enviar información de formularios, y grabar datos de formularios en una base de datos. También explica conceptos como el uso de variables, vínculos, y funciones para pasar información entre páginas web y almacenar datos en una base de datos.
¿Que es PHP?
¿Que son los Servicios Web?
❏ ¿Que es SOAP?
❏ Librerias SOAP
❏ Crear un Servicio SOAP
❏ Crear un Cliente SOAP
❏ ¿Que es REST?
❏ Librerias SOAP
❏ Crear un Servicio REST
❏ Crear un Cliente REST
Conclusion
Bibliografia
Amazon Relational Database Service (Amazon RDS) is a web service that makes it easy to set up, operate, and scale a relational database in the cloud. With Amazon RDS, you can MySQL in minutes with cost-efficient and re-sizable hardware capacity. In this webinar, we'll discuss how to get the most out of the service, including techniques for migrating data in and out.
¿Que es PHP?
¿Que son los Servicios Web?
❏ ¿Que es SOAP?
❏ Librerias SOAP
❏ Crear un Servicio SOAP
❏ Crear un Cliente SOAP
❏ ¿Que es REST?
❏ Librerias SOAP
❏ Crear un Servicio REST
❏ Crear un Cliente REST
Conclusion
Bibliografia
Amazon Relational Database Service (Amazon RDS) is a web service that makes it easy to set up, operate, and scale a relational database in the cloud. With Amazon RDS, you can MySQL in minutes with cost-efficient and re-sizable hardware capacity. In this webinar, we'll discuss how to get the most out of the service, including techniques for migrating data in and out.
Curso de introducción a HTML5 y CSS3 impartido el 1 junio de 2012 a clientes de Paradigma Tecnológico
http://www.paradigmatecnologico.com/blog/curso-de-html5-y-css3/
In the age of data science and machine learning, data scientists want access to data sets quickly, but organizations often need to protect private data, whether due to internal policy or government regulations.
In this talk we discuss how to leverage PostgreSQL for managing organization-wide data access while protecting privacy.
Topics include:
Purpose-based data access
Federating data
Foreign data wrappers
Masking
Differential Privacy
Auditing
Learn how to load balance your applications following best practices with NGINX and NGINX Plus.
Join this webinar to learn:
- How to configure basic HTTP load balancing features
- The essential elements of load balancing: session persistence, health checks, and SSL termination
- How to load balance MySQL, DNS, and other common TCP/UDP applications
- How to have NGINX Plus automatically discover new service instances in an auto-scaling or microservices environment
You’re ready to make your applications more responsive, scalable, fast and secure. Then it’s time to get started with NGINX. In this webinar, you will learn how to install NGINX from a package or from source onto a Linux host. We’ll then look at some common operating system tunings you could make to ensure your NGINX install is ready for prime time.
View full webinar on demand at http://nginx.com/resources/webinars/installing-tuning-nginx/
Curso de introducción a HTML5 y CSS3 impartido el 1 junio de 2012 a clientes de Paradigma Tecnológico
http://www.paradigmatecnologico.com/blog/curso-de-html5-y-css3/
In the age of data science and machine learning, data scientists want access to data sets quickly, but organizations often need to protect private data, whether due to internal policy or government regulations.
In this talk we discuss how to leverage PostgreSQL for managing organization-wide data access while protecting privacy.
Topics include:
Purpose-based data access
Federating data
Foreign data wrappers
Masking
Differential Privacy
Auditing
Learn how to load balance your applications following best practices with NGINX and NGINX Plus.
Join this webinar to learn:
- How to configure basic HTTP load balancing features
- The essential elements of load balancing: session persistence, health checks, and SSL termination
- How to load balance MySQL, DNS, and other common TCP/UDP applications
- How to have NGINX Plus automatically discover new service instances in an auto-scaling or microservices environment
You’re ready to make your applications more responsive, scalable, fast and secure. Then it’s time to get started with NGINX. In this webinar, you will learn how to install NGINX from a package or from source onto a Linux host. We’ll then look at some common operating system tunings you could make to ensure your NGINX install is ready for prime time.
View full webinar on demand at http://nginx.com/resources/webinars/installing-tuning-nginx/
Las capacidades sociomotrices son las que hacen posible que el individuo se pueda desenvolver socialmente de acuerdo a la actuación motriz propias de cada edad evolutiva del individuo; Martha Castañer las clasifica en: Interacción y comunicación, introyección, emoción y expresión, creatividad e imaginación.
Un libro sin recetas, para la maestra y el maestro Fase 3.pdfsandradianelly
Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestra y el maestro Fase 3Un libro sin recetas, para la maestr
PRÁCTICAS PEDAGOGÍA.pdf_Educación Y Sociedad_AnaFernández
Gestion de formularios php
1. Ing. Javier Purizaca Chero1
UNIVERSIDAD CATÓLICA
LOS ANGELES DE CHIMBOTE
TECNOLOGÍA WEB I
GESTIÓN DE FORMULARIOS
Y LOS VÍNCULOS CON PHP
2. Ing. Javier Purizaca Chero2
OBJETIVOS
Conocer los fundamentos para la gestión de
formularios en PHP
Utilizar los métodos POST y GET para el envío de
información de formularios
Grabar datos de un formulario en una base de
datos
3. Ing. Javier Purizaca Chero3
INTRODUCCIÓN
El servicio FTP (File Transfer Protocol, Protocolo
de Transferencia de Ficheros), es un de los mas
antiguos dentro de Internet. Es un servicio que
los usuarios lo utilizan frecuentemente
(descarga de drivers, música, documentos, etc.)
El servicio FTP se puede realizar a través de los
navegadores de Internet (Netscape, Internet
Explorer, Firefox, etc.), así como a través de
clientes FTP como Filezilla, GoFTP, etc.
4. Ing. Javier Purizaca Chero4
TRATAR CON FORMULARIOS
El concepto básico que es importante entender es que
cualquier elemento de un formulario estará disponible
automáticamente en los scripts de PHP.
<form action="accion.php" method="post">
<p>Su nombre: <input type="text" name="nombre" /></p>
<p>Su edad: <input type="text" name="edad" /></p>
<p><input type="submit" /></p>
</form>
Cuando el usuario rellena este formulario y oprime el botón de
envío, se llama a la página accion.php
5. Ing. Javier Purizaca Chero5
TRATAR CON FORMULARIOS
El contenido del fichero accion.php:
<?php
echo "Hola ". htmlspecialchars($_POST['nombre']) . "<br>";
echo "Usted tiene ". (int)$_POST['edad'] . " años";
?>
htmlspecialchars() se asegura de que cualquier carácter que es
especial en html sea codificado adecuadamente, de manera que
nadie pueda inyectar etiquetas HTML o Javascript en la página
El campo edad, ya que sabemos que es un número, podemos
convertirlo a un valor de tipo integer que automáticamente se
deshará de cualquier carácter no numérico.
6. Ing. Javier Purizaca Chero6
TRATAR CON FORMULARIOS
<form action="accion.php" method="post">misdatos.html
accion.php
htmlspecialchars($_POST['nombre'])
7. Ing. Javier Purizaca Chero7
MÉTODOS DE ENVÍO
Existen dos métodos posibles de envío de información
en una página web a través de un formulario, el método
GET y el método POST.
Método GET
Este método tiene las siguientes particularidades:
El navegador toma la dirección especificada en la
propiedad action de la etiquete form de Html. Le añade
un ? Y a continuación incluye los datos del formulario
que van a ser visibles en la barra de dirección del
navegador. Por ejemplo:
http://www.ejemplo.com/index.html?name1=value1&name2=value2
8. Ing. Javier Purizaca Chero8
EL MÉTODO POST
Método POST
Los datos son transmitidos en forma no visible en la
barra del navegador.
PHP provee un arreglo asociativo $_POST para
acceder a toda la información en viada utilizando este
método.
13. Ing. Javier Purizaca Chero13
PASAR VARIABLES POR URL
Para pasar las variables de una página a otra lo podemos
hacer introduciendo dicha variable dentro del enlace
hipertexto de la página destino. La sintaxis sería la
siguiente:
<a href="destino.php?variable1=valor1&variable2=valor2&...">Mi enlace</a>
Se puede observar que estas variables no poseen el
símbolo $ delante.
De esta forma, las variables variable1 y variable2 pertenecen
también al entorno de la página destino.php y listas para
su explotación.
14. Ing. Javier Purizaca Chero14
PASAR VARIABLES POR URL - EJEMPLO
<a href="destino.php?nombre=Juan Ramos & edad=25" >Inscríbete
aquí</a>
<?php
$nombre = $_GET['nombre'];
$edad = $_GET['edad'];
echo "Gracias por regitrarte en nuestro sitio <br>
Tus datos son:" . $nombre . " ". $edad;
?>
destino.php
16. Ing. Javier Purizaca Chero16
GABAR DATOS EN UNA BASE DE DATOS
<form method="post" action="guardarCliente.php">
<p>Nombre :<input type="text" name="txtNombres" value=""></p>
<p>Dirección:<input type="text" name="txtDireccion"></p>
<p>Teléfono :<input type="text" name="txtTelefono"></p>
<p>E-mail :<input type="text" name="txtEmail"></p>
<input type="submit" name="enviar" value="Aceptar información">
</form>
cliente.html
17. Ing. Javier Purizaca Chero17
GABAR DATOS EN UNA BASE DE DATOS
<?php
include_once 'config.php';
//Capturndo los datos
$nombres = $_POST['txtNombres'];
$direccion = $_POST['txtDireccion'];
$telefono = $_POST['txtTelefono'];
$email = $_POST['txtEmail'];
//Conectadno a l base de datos
$enlace = new mysqli($hostname, $usuario, $password, $basededatos);
guardarCliente.php
18. Ing. Javier Purizaca Chero18
GABAR DATOS EN UNA BASE DE DATOS
if ( mysqli_connect_errno() ) {
echo "Error de conexión a la BD: " . mysqli_connect_error();
exit();
}
else {
$sql = "INSERT INTO `clientes` (`idCliente`, `nombres`, `direccion`,
`telefono`, `email`)
VALUES (NULL, '$nombres', '$direccion', '$telefono', '$email')";
$enlace->query($sql);
if($enlace){
echo "Datos grabados";
}else{
echo "Error, no se grabaron los datos";
}
}
?>
19. Ing. Javier Purizaca Chero19
GABAR DATOS EN UNA BASE DE DATOS
En la Base de datos
20. Ing. Javier Purizaca Chero20
ACTIVIDADES A REALIZAR
➢ Actividad:
Presentar la monografía de investigación formativa:
Elaborar una monografía con respecto al gestor de
contenido Joomla, debes señalar la bibliografía y/o web
grafía siguiendo las normas APA o Vancouver
➢ Actividad:
Los estudiantes utilizan un formulario diseñado para
“registro de nuevo usuario”, y crean una clase en php
para recepcionar los datos y realizar las operaciones
➢ Actividad Grupal:
Crear un modulo para el envió de E-mails