Comunidad de diseño web y desarrollo en internet online

envial mail con datos de tabla y mas

Citar            
MensajeEscrito el 17 Oct 2009 06:09 pm
Hola, continuando en mi labor de aprendizaje, se me plantea este problema que no se ni por donde empezar.
Lo que me gustaria es lo tipico de las web que te pregunta que si has olvidado tu nick o pass, pulsas un enlace ,metes tu email y te envia a tu correo tu nick y tu pass.
Tengo una tabla que contiene los campos nick, pass, web y email.

habia pensado hacerlo de no se que manera, pero para ello necesitaba que al hacer login los usuarios cada uno fuera dirijido a una web personal, de ahi que en la tabla este lo de web, pero como tampoco consigo hacer eso pues no se .De hecho esto tambien lo quiero hacer y estoy deseperado de buscar como asociar a cada usuario una web diferente.

gracias

Por pepito piscinas

106 de clabLevel



 

msie
Citar            
MensajeEscrito el 18 Oct 2009 02:15 am
Amigo lo que puedes hacer es lo siguiente:
1)Crear una tabla en mysql con los campos usuario clave, y otro campo que llamaremos paginas(al cual tu vas a direccionar los usuarios).ej http//www.yahoo.com
2)crear formulario de usuarios para el registro de los mismos.
3) crear una pagina para validar los usuarios y enviarlos a las paginas que tu as colocado en mysql.

y listo. :shock:

Eso seria algo Asi:
crea una bd e inserta esta tabla:

CREATE TABLE `user` (
`usuario` varchar(20) collate latin1_general_ci NOT NULL,
`clave` varchar(25) collate latin1_general_ci NOT NULL,
`dirpagina` varchar(50) collate latin1_general_ci NOT NULL,
PRIMARY KEY (`usuario`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

Donde los usuarios al registrarsen tu en el campo dirpagina colocaras la pagina donde tu quieras que ellos vallan al validar su nombre de usuario y clave. :)

inserta en la tabla estos campos de prueba:

INSERT INTO `user` (`usuario`, `clave`, `dirpagina`) VALUES
('mauro', 'mauro', 'http://www.google.com.co/'),
('pepito', 'pepito', 'http://m.www.yahoo.com/');


Luego crea la conexion al bd (conex.php)

<?php
$dbname = "MIDB";
$local = mysql_connect( "localhost", "root",""); //se conecta
if( ! mysql_select_db( $dbname, $local ) ) // abre la B.D
echo "Error al conectar con la Base de Datos: $dbname";
?>

Luego el formulario de insercion de usurios user.php



<html>
<center>
<h1> Modulo de Creacion Usuarios </h1>

<form name=f method=POST action="">
<table border=1>
<tr> <td> Nombre Usuario <td> : <input type=text name=user value="<?php echo $user ?>" size=20 maxlength=20>
<tr> <td> Clave <td> : <input type=password name=pass value="" size=20 maxlength=20>
</table>
<input type= submit name=insertar value=Crear > &nbsp

</form>
</html>

<?php

$insertar=$_POST['insertar'];

if($insertar){
require("conex.php");/* script donde esta la conexion*/
$sql = "select * from user where usuario = '$user' ";
$cursor = mysql_query( $sql, $local );
if( mysql_fetch_array( $cursor ) ){
echo "Codigo $user YA existe...";
}
else{
$sql = "insert into user values ( '$user', '$pass','' ) ";
if( mysql_query( $sql, $local ) )
echo "Insercion O.K..";
else
echo "Insercion Fallo...";
}
}
?>

luego el script que validara todo lo he puesto lo mas sencillo posible :) (admin.php)


<html>
<center>
<h1> Modulo de Ingreso para Pepito Piscinas </h1>

<form name=f method=POST action="">
<table border=1>
<tr> <td> Nombre Usuario <td> : <input type=text name=user value="<?php echo $user ?>" size=20 maxlength=20>
<tr> <td> Clave <td> : <input type=password name=pass value="" size=20 maxlength=20>
</table>
<input type= submit name=validar value=Ingresar > &nbsp

</form>
</html>
<?php

$validar=$_POST['validar'];

if($validar){
require("conex.php");/* script donde esta la conexion*/


$sql="select *from user where usuario='$user' and clave='$pass'";/*tabla donde tenemos alos usuarios registrados hacemos la consulta*/

$cursor=mysql_query($sql,$local);
if($row=mysql_fetch_array($cursor)){
$paginas=$row["dirpagina"];




echo "<script>document.location.href='$paginas';</script>\n";/*la variable $paginas es la direccion http:// que tenemos en nuestra tabla*/





}

else if(!$row=mysql_fetch_array($cursor)){
echo "<script>alert('ERROR AL INGRESAR AL SISTEMA ');</script>";
echo "<script>alert('Ha olvidado el Nombre de Usuario y Contraseña reservada de acceso a la aplicación!. Vuelva a escribir el Nombre de Usuario y Contraseña reservada. Asegúrese de que usa las letras mayúsculas o minúsculas correctamente.');</script>";
echo "<script>document.location.href='admin.php';</script>\n";


}

}
?>

Y listo.Cualquier cosa escribe.


el servir nos hace grandes :cool:

Por crmauricio

52 de clabLevel



 

firefox
Citar            
MensajeEscrito el 18 Oct 2009 08:45 pm
Hola, graciias por la respuesta , pero sigo con el problema,
A ver, estoy utilizando dreamweaver y haciendo uso de algunos de sus asistentes de creacion de formularios, y he conseguido hacer esto:
Crear base datos,ok
Concetar con ella,ok
formulario validacion usuarios registrados,ok
incluso un panel de admin, desde el que puedo, crear, editar y borrar usuarios de la tabla.
pero sigo con que no entiendo como hacer que segun el usuario vaya a la web que le pongo en la tabla.

Si me lopudierais explicar como hacerlo utilizando este editor.
Dejo el codigo generado por el asistente del formulario de validacion de usuarios.

Código :

<?php include('Connections/dcool.php'); ?><?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_dcool, $dcool);
$query_dcool2 = "SELECT * FROM usuarios";
$dcool2 = mysql_query($query_dcool2, $dcool) or die(mysql_error());
$row_dcool2 = mysql_fetch_assoc($dcool2);
$totalRows_dcool2 = mysql_num_rows($dcool2);
?><?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
  session_start();
}

$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
  $_SESSION['PrevUrl'] = $_GET['accesscheck'];
}

if (isset($_POST['user'])) {
  $loginUsername=$_POST['user'];
  $password=$_POST['pass'];
  $MM_fldUserAuthorization = "";
  $MM_redirectLoginSuccess = "/acceso.php";
  $MM_redirectLoginFailed = "/negado.html";
  $MM_redirecttoReferrer = false;
  mysql_select_db($database_dcool, $dcool);
  
  $LoginRS__query=sprintf("SELECT usuario, password FROM usuarios WHERE usuario=%s AND password=%s",
    GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text")); 
   
  $LoginRS = mysql_query($LoginRS__query, $dcool) or die(mysql_error());
  $loginFoundUser = mysql_num_rows($LoginRS);
  if ($loginFoundUser) {
     $loginStrGroup = "";
    
    //declare two session variables and assign them
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;         

    if (isset($_SESSION['PrevUrl']) && false) {
      $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];   
    }
    header("Location: " . $MM_redirectLoginSuccess );
  }
  else {
    header("Location: ". $MM_redirectLoginFailed );
  }
}
?><!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>Documento sin t&iacute;tulo</title>
</head>

<body>
<p>Bienvenido</p>
<form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
  <label><br />
  </label>
  <table border="1">
    <tr>
      <td width="90">user</td>
      <td width="111">pass</td>
    </tr>
    <tr>
      <td><p>
        <label></label>
        <label>
          <input type="text" name="user" id="user" />
          </label>
      </p></td>
      <td><p>&nbsp;
              <label>
              <input type="text" name="pass" id="pass" />
              </label>
      </p></td>
    </tr>
  </table>
  <input type="submit" name="Enviar" id="Enviar" value="Enviar" />
</form>
</body>
</html>
<?php
mysql_free_result($dcool2);
?>

Por pepito piscinas

106 de clabLevel



 

msie
Citar            
MensajeEscrito el 20 Oct 2009 05:48 pm
Bueno Amigo. Creo que el error esta en lo siguiente:
Cuando tu oprimes el boton enviar, php no lo encuentra ya que tu no lo haz declarado, :shock: como se declara y en donde.Bueno en la linea de codigo que tu tienes:
$loginFormAction = $_SERVER['PHP_SELF'];
coloca encima lo siguiente:

$Enviar=$_POST['Enviar'];/*DONDE $Enviar es el nombre del boton Enviar*/

if($Enviar){ /*Al ser pulsado realiza todo el codigo de autentificacion*/


Y no se te olvide cerrar el if } abajo despues de la linea:

header("Location: ". $MM_redirectLoginFailed );

quedaria Asi:


<?php include('Connections/dcool.php'); ?><?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}



mysql_select_db($database_dcool, $dcool);
$query_dcool2 = "SELECT * FROM usuarios";
$dcool2 = mysql_query($query_dcool2, $dcool) or die(mysql_error());
$row_dcool2 = mysql_fetch_assoc($dcool2);
$totalRows_dcool2 = mysql_num_rows($dcool2);
?><?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$Enviar=$_POST['Enviar'];

if($Enviar){


$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}

if (isset($_POST['user'])) {
$loginUsername=$_POST['user'];
$password=$_POST['pass'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "/acceso.php";
$MM_redirectLoginFailed = "/negado.html";
$MM_redirecttoReferrer = false;
mysql_select_db($database_dcool, $dcool);

$LoginRS__query=sprintf("SELECT usuario, password FROM usuarios WHERE usuario=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));

$LoginRS = mysql_query($LoginRS__query, $dcool) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";

//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;

if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
}
?>
<!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>Documento sin t&iacute;tulo</title>
</head>

<body>
<p>Bienvenido</p>
<form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
<label><br />
</label>
<table border="1">
<tr>
<td width="90">user</td>
<td width="111">pass</td>
</tr>
<tr>
<td><p>
<label></label>
<label>
<input type="text" name="user" id="user" />
</label>
</p></td>
<td><p>&nbsp;
<label>
<input type="text" name="pass" id="pass" />
</label>
</p></td>
</tr>
</table>
<input type="submit" name="Enviar" id="Enviar" value="Enviar" />
</form>
</body>
</html>
<?php
mysql_free_result($dcool2);

?>

lo probe y funciono en Dreamweaver.
Tambien mira si la ruta de estos archivos esta bien

$MM_redirectLoginSuccess = "/acceso.php";
$MM_redirectLoginFailed = "/negado.html";

si estan dentro de la misma carpeta no necesitan el / si estan dentro de otra carpeta seria ../nombrede la carpeta/acceso.php.

Cualquier duda escribe.
El ayudar nos hace grandes.

Por crmauricio

52 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Oct 2009 12:26 pm
gracias crmauricio, pero te comento:
El formulario me funcionaba, permitiendo el acceso si el usuario y el pass eran correctos y lo denegaba si no lo eran.
Pero lo que yo necesito es , que segun el usuario y el pass, dirija a una web(como http://www.google.es) que estara contenida en cada usuario una diferente.
ejemplo
si usuario1 y pass 1 ir a google.es
si usuario2 y pass2 ir a yahoo.com
etc.
Gracias de nuevo, y a ver si lo solucionamos que empiezo a desemperar

Por pepito piscinas

106 de clabLevel



 

msie
Citar            
MensajeEscrito el 21 Oct 2009 05:31 pm
No te preocupes, haber si te entendi, tienes que dirigir a los usuarios a una pagina cualquiera cuando ellos se autentiquen. Si en la tabla de usuarios que tu tienes en mysql tu mismo asignas las direcciones,a tus usuarios por ejemplo en un campo llamado dirpaginas en este campo tu le asignas por ejemplo: http://www.google.com.co/ si es asi puedes hacer lo siguiente :



1) En tu script que te genero dreamweaver, en esta linea:
if (isset($_POST['user'])) {
$loginUsername=$_POST['user'];
$password=$_POST['pass'];

Agrega esto:
$pagina=$_POST['dirpagina']; Donde $pagina es una variable que le asignaremos el valor del campo dirpagina de la tabla usuarios de mysql donde tu ingresas las direcciones electronicas.

2) en la consulta que hace tu script:
$LoginRS__query=sprintf("SELECT usuario, password FROM usuarios WHERE usuario=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));

Agrega dos cositas una en la consulta y otra una variable.
o sea que quedaria asi:

$LoginRS__query=sprintf("SELECT usuario, password,dirpagina FROM usuarios WHERE usuario=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"),GetSQLValueString($pagina, "text"));





3) luego en tu script despues de esta linea:

$LoginRS = mysql_query($LoginRS__query, $dcool) or die(mysql_error());

Agrega:

if($row=mysql_fetch_array($LoginRS)){

$pagina=$row["dirpagina"];

}

Para que guarde en una variable llamada $pagina el valor de la consulta que hiciste que esta en la variable $LoginRS,
que es la que me trae a los usurios contraseñas y paginas, y de esta consulta guardamos lo que hay en el campo dirpagina de mysql en la variable $pagina.

4) En esta linea:

header("Location: " . $MM_redirectLoginSuccess );
Cambiala por:
header("Location: " . $pagina );

5) y se me olvidaba :lol: en la parte de arriba en la linea donde tu llamas las paginas:

$MM_redirectLoginSuccess = "/acceso.php";

coloca esto:

$pagina = "$pagina";

TODO EL SCRIPT QUEDARIA ASI:
<?php include('Connections/dcool.php'); ?><?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_dcool, $dcool);
$query_dcool2 = "SELECT * FROM usuarios";
$dcool2 = mysql_query($query_dcool2, $dcool) or die(mysql_error());
$row_dcool2 = mysql_fetch_assoc($dcool2);
$totalRows_dcool2 = mysql_num_rows($dcool2);
?><?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}

$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}

if (isset($_POST['user'])) {
$loginUsername=$_POST['user'];
$password=$_POST['pass'];
$pagina=$_POST['dirpagina'];
$pagina = "$pagina";
$MM_redirectLoginSuccess = "/acceso.php";
$MM_redirectLoginFailed = "/negado.html";
$MM_redirecttoReferrer = false;
mysql_select_db($database_dcool, $dcool);

$LoginRS__query=sprintf("SELECT usuario, password,dirpagina FROM usuarios WHERE usuario=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"), GetSQLValueString($pagina, "text"));

$LoginRS = mysql_query($LoginRS__query, $dcool) or die(mysql_error());

if($row=mysql_fetch_array($LoginRS)){

$pagina=$row["dirpagina"];

}


$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";

//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;

if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $pagina );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?><!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>Documento sin t&iacute;tulo</title>
</head>

<body>
<p>Bienvenido</p>
<form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
<label><br />
</label>
<table border="1">
<tr>
<td width="90">user</td>
<td width="111">pass</td>
</tr>
<tr>
<td><p>
<label></label>
<label>
<input type="text" name="user" id="user" />
</label>
</p></td>
<td><p>&nbsp;
<label>
<input type="text" name="pass" id="pass" />
</label>
</p></td>
</tr>
</table>
<input type="submit" name="Enviar" id="Enviar" value="Enviar" />
</form>
</body>
</html>
<?php
mysql_free_result($dcool2);

?>


Y listo :?
Lo que hemos hecho es pasar en una consulta con un campo en mysql que tiene una direccion que asignamos a nuestro usuario.Por medio de una variable $pagina cuando se autentifique el usuario.

Comentame como te fue :?

El servir nos hace grandes
:cool:

Por crmauricio

52 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Oct 2009 08:19 pm
OOOOOOOOOLLLLLLLLLLLLLLEEEEEEEEEEEEEEEEEE!!!!!!
Muchas gracias crmauricio por tu paciencia y dedicacion, ya he conseguido esta parte que era una de las que mas estaba interesado aprender.
Muchas gracias de nuevo.

Por pepito piscinas

106 de clabLevel



 

msie

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.