Holas,
Muchas gracias por la ayuda, aunque todavia sigo sin poder editar datos de la db. Ahora estoy más desorientado que antes porque agregue
Código PHP:
echo "mostrar esto";
en editardatos.php?frmsend=1, y no me lo muestra

;
Por si las dudas dejo todo el codigo:
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Editar datos</title>
<link href="../estilos.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
session_start();
include '../dbconnect.php';
?>
<div class="cuerpo">
<div class="header">
<div id="nombre">
<p><a href="/"><img src="http://www.forosdelweb.com/f18/img/nombre.png" alt="sinepzia" width="450" height="100" /></a></p>
</div>
<div id="login">
<?php
include '../userpanel.php';
?>
</div>
</div>
<div id="contenedorprincipal">
<div id="notice">
<?php include '../notice.php'; ?>
</div>
<p> </p>
<div id="box2">
<div id="box2headerleft"></div>
<div id="box2headerright"></div>
<div id="box2header">
<p>Editar datos</p>
</div>
<div id="box2center">
<p>
<form id="form2" method="post" action="../funciones/editardatos.php?frmsend=1">
</p>
<p>Password:
<input type="password" name="frmpassword" id="frmpassword" maxlength="24" />
</p>
<p>Nombre:
<input type="text" name="frmname" id="frmname" value="<?php echo ucwords($_SESSION['nombre']);?>" maxlength="25" />
</p>
<p>Apellido:
<input type="text" name="frmapellido" id="frmapellido" value="<?php echo ucwords($_SESSION['apellido']);?>" maxlength="45" />
</p>
<p>Email:
<input type="text" name="frmemail" id="frmemail" value="<?php echo $_SESSION['email']?>" maxlength="30" />
</p>
<p>Sitio web:
<input type="text" name="frmsitioweb" id="frmsitioweb" value="<?php echo $_SESSION['sitioweb']?>" maxlength="30" />
</p>
<p>
<input type="submit" name="frmsend" value="Enviar" />
</p>
</form>
<?php
if ($_POST['frmsend'] == 1){
$frmpassword = md5($_POST['frmpassword']);
$frmname = $_POST['frmname'];
$frmemail = $_POST['frmemail'];
$frmapellido = $_POST['frmapellido'];
$frmsitioweb = $_POST['frmsitioweb'];
echo "mostrar esto";
$sql="UPDATE usuarios SET password = '".$frmpassword."'
WHERE idusuario =".$_SESSION['idusuario'];
$request = mysql_query($sql);
if($request) {
header("location: ../registro_completado.php");
} else {
echo "Ocurrio un error mientras se creaba la cuenta.";
}
}
?>
</p>
</div>
<div id="box2footer">
</div>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
</div>
<div id="footer">
<p>© Todos los derechos reservados</p>
</div>
</body>
</html>
Muchas gracias,
Saludos!