LO QUE QUIERO ES LO SIGUIENTE :
ingresar.php
Código PHP:
Ver original
<?php require_once('Connections/ofertas.php'); ?> <?php // *** Validate request to login to this site. } $loginFormAction = $_SERVER['PHP_SELF']; $_SESSION['PrevUrl'] = $_GET['accesscheck']; } $loginUsername=$_POST['Email']; $password=$_POST['Clave']; $MM_fldUserAuthorization = ""; $MM_redirectLoginSuccess = "micuenta.php"; $MM_redirectLoginFailed = "no_usuario.php"; $MM_redirecttoReferrer = false; get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password)); if ($loginFoundUser) { $loginStrGroup = ""; //declare two session variables and assign them $_SESSION['MM_Username'] = $loginUsername; $_SESSION['MM_UserGroup'] = $loginStrGroup; $MM_redirectLoginSuccess = $_SESSION['PrevUrl']; } } else { } } ?> <!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=iso-8859-1" /> <title>Documento sin título</title> <style type="text/css"> <!-- #Layer1 { position:absolute; left:431px; top:168px; width:95px; height:145px; z-index:1; } --> </style> </head> <body> <div id="Layer1"> <form method="POST" name="form1" action="<?php echo $loginFormAction; ?>"> <table width="382" align="center"> <tr valign="baseline"> <td width="38" align="right" nowrap>Email:</td> <td width="269"><input type="text" name="Email" value="" size="30"> <img src="imagenes/Mail_16x16.png" width="16" height="16" /></td> </tr> <tr valign="baseline"> <td nowrap align="right">Clave:</td> <td><input type="password" name="Clave" value="" size="30"> <img src="imagenes/candado.jpg" width="16" height="16" /></td> </tr> <tr valign="baseline"> <td nowrap align="right"> </td> <td> <div align="center"> <input type="submit" value="Ingresar"> </div></td></tr> </table> <input type="hidden" name="id_usuario" value=""> </form> </div> </body> </html>
lo que necesito es si alguien me ayuda con el login a validarlo.
con el registro a que solo se pueda registrar un mismo e-mail, nombre y clave en la base de datos y como hacer para que una ves que este logeado, si apreta en el login o registro este le indique que ya esta registrado o logeado?