Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Antes hemos tenido la oportunidad de presentar para
ustedes algunos tutoriales sobre MySQL:
espacio para documentar y compartir los conocimientos que Únete a nuestras redes
he adquirido. sociales
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Nuestro formulario debe verse así: 3,067 ME GUSTA
423 SEGUIR
700 SEGUIR
5,540 SUSCRIBIRTE
Síguenos en Facebook
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Panama Hitek
3,067 likes
Like Page
Panama Hitek
about 3 months ago
index
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Formulario de Registro SCIII</title>
6 <link href="estilos.css" rel="stylesheet" type=
7 </head>
8
9 <body>
10 <div class="group">
11 <form action="registro.php" method="POST">
12 <h2><em>Formulario de Registro</em></h2>
13
14 <label for="nombre">Nombre <span><em>(req
15 <input type="text" name="nombre" class="f
16
17 <label for="apellido">Apellido <span><em>
18 <input type="text" name="apellido" class=
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
19
20 <label for="email">Email <span><em>(reque
21 <input type="email" name="email" class="f
22 <center> <input class="form-btn" name="sub
23 </p>
24 </form>
25 </div>
26 </body>
27 </html>
registro
1 <?php
2 $db_host="localhost";
3 $db_user="nombre_de_usuario";
4 $db_password="contraseña";
5 $db_name="nombre_de_base_de_datos";
6 $db_table_name="nombre_de_tabla";
7 $db_connection = mysql_connect($db_host, $db
8
9 if (!$db_connection) {
10 die('No se ha podido conectar a la base de dat
11 }
12 $subs_name = utf8_decode($_POST['nombre']);
13 $subs_last = utf8_decode($_POST['apellido']);
14 $subs_email = utf8_decode($_POST['email']);
15
16 $resultado=mysql_query("SELECT * FROM ".$db_tab
17
18 if (mysql_num_rows($resultado)>0)
19 {
20
21 header('Location: Fail.html');
22
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
23 } else {
24
25 $insert_value = 'INSERT INTO `' . $db_name . '
26
27 mysql_select_db($db_name, $db_connection);
28 $retry_value = mysql_query($insert_value, $db_c
29
30 if (!$retry_value) {
31 die('Error: ' . mysql_error());
32 }
33
34 header('Location: Success.html');
35 }
36
37 mysql_close($db_connection);
38
39 ?>
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Descargar Archivos
Like 20
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
25 Comentarios
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Antony García González marzo 25, 2020 at 1:13 pm
excelente
ahora yo quiero un formulario para eliminar los datos de
una base de datos
Responder
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
cuando lo conecto con mi base de datos, me sale error en
la línea Fatal error: Uncaught Error: Call to undefined
function mysql_connect() in
C:\xampp\htdocs\proyecto4cu\Suscribe\registro.php:7
Stack trace: #0 {main} thrown in
C:\xampp\htdocs\proyecto4cu\Suscribe\registro.php on
line 7
y toda los datos están bien
Responder
at 8:18 am
Eso es correcto
Responder
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Eso es correcto
Responder
ya agregue mysqli_ y no me
conecta me manda el msj de no
hay conexion con la base de
datos. Que hice mal ???
Responder
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Ana Balderas de Oz febrero 4, 2016 at 7:34 pm
piensenle tantito,
Responder
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
LlegueYoo octubre 2, 2016 at 12:37 pm
11:13 am
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
saludos desde Peru que existe una universidad tecnologica
del Peru
Responder
Dejar respuesta
Comentario:
Nombre:*
Correo electrónico:*
Sitio web:
Save my name, email, and website in this browser for the next
time I comment.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Recibir un correo electrónico con cada nueva entrada.
Publicar comentario
Contáctanos:
creativeteam@panamahitek.com
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD