Tema: Consultas
Ver Mensaje Individual
  #23 (permalink)  
Antiguo 18/01/2009, 15:59
majony
(Desactivado)
 
Fecha de Ingreso: diciembre-2008
Mensajes: 421
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Consultas

Bueno lo cambia cuando lei tu post q habia problemas con el $_POST['nick'] pero lo cambia ahora yo igual solo q no entiendo pq no actualiza en el update mira::


Cambiaria su formulario asi::
el ojo.html
<html>
<!-- Created on: 17/01/2009 -->
<head>

</head>
<body>
<form action="mira.php" method="post">/// aqui
nick<br>
<input type="text" name="nick" size="20" maxlength="256"><br>
contraseña: <br>
<input type="password" name="contrasena" size="20" maxlength="256"><br>
nombre<br>
<input type="text" name="nombre" size="20" maxlength="256">
<input type="submit" value="listo">

</form>
</body>
</html>

2////////////////ahora Carlos.php

<html>
<!-- Created on: 17/01/2009 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="www.bg-warez.org">
<meta name="generator" content="AceHTML 6 Pro">
</head>
<body>
Hola mundo
<center> llena tu menu </center>
<?php
include("../conectar.php");
$link = Conectarse();
$id = $_POST['id'];
$nick = $_POST['nick'];
$contrasena = $_POST['contrasena'];
$nombre = $_POST['nombre'];
$result = mysql_query("select veo from login3 where nombre = '$nombre'",$link);
$vista = mysql_result($result ,0);
// echo $vista;
if ($vista == 0){
?>
<li><a href=carlos2.html> tu formualrio </a></li>

<?php
mysql_query("Update login3 Set veo = '1' where nick = '$nick'");
}

else
{
echo "ya esta";
}

?>
<li><a href=#> Modificalo </a></li>
<li><a href=salir.php> Salir de Session </a></li>

</body>
</html>

LISTO