Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/03/2010, 08:13
Avatar de Mahishasura
Mahishasura
 
Fecha de Ingreso: enero-2010
Ubicación: En las profundidades del cosmos
Mensajes: 58
Antigüedad: 15 años, 3 meses
Puntos: 4
Respuesta: login.php como /index.php?action=login

En el formulario:<form ... action="index.php?action=login">...</form>
y en index.php
Código PHP:
Ver original
  1. if($_GET["action"]=="login"){
  2. //AQUI EL SCRIPT QUE VERIFICA EL LOGIN
  3. } else {
  4. // SI LLEGÓ A INDEX.PHP PERO ACTION NO EXISTE O TIENE OTRA VARIABLE
  5. }