Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros entornos y lenguajes > PHP
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 30-06-2007
kapullok_2006 kapullok_2006 is offline
Miembro
 
Registrado: mar 2007
Posts: 90
Poder: 18
kapullok_2006 Va por buen camino
Question creacion de página php

tengo un ejemplo de meter datos para que un usuario se registre.Este ejmplo es del dreamweaver.Lo que no sé es cómo guardar los datos del usuario, en
una base de datos,archivo txt o lo que sea. Una vez que el usuario esté registrado,lo que quiero es que puede descargarse un archivo winrar de la página web.Aquí os enseño el código:
Código PHP:
<html>
<
head>
<
title>REGISTRARSE COMO USUARIO</title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</
head>
<
body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<
form name="form1" method="post" action="">
  <
table width="100%" border="1" cellpadding="8" bgcolor="#FFFFFF">
    <
tr
      <
td colspan="3" bgcolor="#CCCCCC"> <p><b>REGISTRARSE</b></p>
        </
td>
    </
tr>
    <
tr valign="top"
      <
td align="right" bgcolor="#CCCCCC" nowrapNOMBRE USUARIO<font size="-2">*</font></td>
      <
td colspan="12" bgcolor="#FFFFFF"> <input type="text" name="textfield"
        <
br>
        <
font size="-2">*</font><font size="-1"Elige un nombre de usuario que 
        no est
&eacuteregistrado</font></td>
    </
tr>
    <
tr valign="top"
      <
td align="right" bgcolor="#CCCCCC"Password<font size="-2">*</font></td>
      <
td colspan="2" bgcolor="#FFFFFF"> <input type="text" name="textfield2"
      </
td>
    </
tr>
    <
tr valign="top"
      <
td align="right" bgcolor="#CCCCCC"Confirmar<br>
        
Password</td>
      <
td colspan="2" bgcolor="#FFFFFF"> <input type="text" name="textfield3"
        <
br>
        <
font size="-2">*</font><font size="-1">Confirma el password</font></td>
    </
tr>
    <
tr valign="top"
      <
td align="right" bgcolor="#CCCCCC"Nombre</td>
      <
td width="43%" bgcolor="#FFFFFF"> <p
          <
input type="text" name="textfield4">
          <
font size="-1">1er Apellido</font></p>
        </
td>
      <
td width="46%" bgcolor="#FFFFFF"> <input type="text" name="textfield5"
        <
br>
        <
font size="-1">2&ordmApellido</font></td>
    </
tr>
    <
tr valign="top"
      <
td align="right" bgcolor="#CCCCCC"Email</td>
      <
td colspan="2" bgcolor="#FFFFFF"> <input type="text" name="textfield6" size="50"
      </
td>
    </
tr>
    <
tr valign="top"
      <
td align="right" bgcolor="#CCCCCC"Sexo</td>
      <
td colspan="2" bgcolor="#FFFFFF"> <p
          <
input type="radio" name="radiobutton1" value="radiobutton">
          
Male 
          
<input type="radio" name="radiobutton1" value="radiobutton">
          
Female </p></td>
    </
tr>
    <
tr valign="top"
      <
td align="right" bgcolor="#CCCCCC"Fecha Nacimiento</td>
      <
td colspan="2" bgcolor="#FFFFFF"> <table border="0" cellspacing="2" cellpadding="0">
          <
tr align="left"
            <
td><input type="text" name="textfield7" size="2"></td>
            <
td><input type="text" name="textfield8" size="2"></td>
            <
td><input type="text" name="textfield9" size="4"></td>
          </
tr>
          <
tr align="left"
            <
td>MM</td>
            <
td>DD</td>
            <
td>YYYY</td>
          </
tr>
        </
table></td>
    </
tr>
    <
tr valign="top"
      <
td colspan="3"> <p>&iquest;Deseas recibir publicidad?<br>
          <
input type="radio" name="radiobutton2" value="radiobutton" checked>
          
Yes<br>
          <
input type="radio" name="radiobutton2" value="radiobutton">
          
No</p>
        <
p>&iquest;Aceptas los datos metidos?<br>
          <
input type="radio" name="radiobutton3" value="radiobutton" checked>
          
Yes<br>
          <
input type="radio" name="radiobutton3" value="radiobutton">
          
No</p></td>
    </
tr>
    <
tr valign="top" bgcolor="#FFFFFF"
      <
td colspan="3"><input type="submit" name="ENVIAR DATOS" value="Submit"></td>
    </
tr>
  </
table>
</
form>
</
body>
</
html
SAludos.
Responder Con Cita
  #2  
Antiguo 30-06-2007
gabrielkc gabrielkc is offline
Miembro
 
Registrado: jun 2007
Ubicación: Chihuahua Mexico
Posts: 118
Poder: 17
gabrielkc Va por buen camino
Saludos

Checate estos tutoriales son bastante buenos:
http://es.tldp.org/Manuales-LuCAS/ma..._PHP/index.htm

http://www.desarrolloweb.com/php/

para la instalacion del servidor Apache y MySQL puedes descargarte el FoxServ :

http://downloads.sourceforge.net/fox...1&big_mirror=1

Te recomiendo instalar el foxserv directamente en C:\ porque si cambias el directorio tendrias que configurar algunas cosas de Apache principalmente

Última edición por gabrielkc fecha: 30-06-2007 a las 18:30:29.
Responder Con Cita
  #3  
Antiguo 30-06-2007
Avatar de D-MO
D-MO D-MO is offline
Miembro
 
Registrado: ago 2005
Ubicación: root@debian:/#
Posts: 1.042
Poder: 20
D-MO Va por buen camino
Solo para corregir los enlaces de gabrielkc, los primeros 2 no funcionan.
http://es.tldp.org/Manuales-LuCAS/ma..._PHP/index.htm
http://www.desarrolloweb.com/php/

y Además de esos, que mejor que la propia web de php, en http://php.net.
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Creación de botones lucero_chivas C++ Builder 12 08-09-2006 16:31:57
creación de un XML jmlifi Providers 2 10-01-2006 15:22:27
creacion armando OOP 9 28-10-2005 20:29:37
Añadir el número de página al pie de página Javi2 Servers 3 04-08-2005 18:15:36
creacion de ayudas karocs Varios 11 12-09-2004 02:48:15


La franja horaria es GMT +2. Ahora son las 17:01:53.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi