Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/05/2012, 00:18
Avatar de no_fx
no_fx
 
Fecha de Ingreso: febrero-2012
Ubicación: localhost
Mensajes: 51
Antigüedad: 12 años, 6 meses
Puntos: 2
problema inicio de sesion localhost vs hosting

Hola :
Mi problema es el siguiente, la pagina que contiene las textarrea para iniciar sesión se llama ingresa.php. Cuando trabajo en el localhost (xampp) me envía a ingreso.php, en donde quiero que vaya, hasta hay todo bien.
Pero al subir al hosting no me envía a ningún lado, se inicia la sesión pero se mantiene en ingresa.php.

Me podrían orientar ó es un problema del localhost??

Este es el codigo que ocupo


Código PHP:
Ver original
  1. <?
  2. include("configuration.php");
  3. include("recursos.php");
  4.  
  5. $message = "";
  6. $act = $_POST['act'];
  7. if($act == 'login') {
  8.     $email = $_POST['email'];
  9.     $password = $_POST['passwd'];
  10.     $oneCustomer = new Cliente();
  11.  
  12.         $txterror = $oneCustomer->VerificarDatos($email, $password);
  13.         if($txterror != 'NOOK') {  
  14.             if (isset($_SESSION["cart"])){
  15.                 header("Location: ingreso.php");
  16.             }      
  17.         }else{
  18.             $message = "Datos incorrectos";
  19.         }      
  20. }
  21. ?>


Código HTML:
Ver original
  1. <form name="form1" id="form1"  method="post">
  2.          <input type="hidden" id="act" name="act"  />
  3.            
  4.            <table width="98%" border="0" cellspacing="2" cellpadding="2">
  5.             <tr>
  6.               <td colspan="2">&nbsp;</td>
  7.             </tr>
  8.             <tr>
  9.               <td colspan="2"><strong>Detalles</strong></td>
  10.               </tr>
  11.             <tr>
  12.               <td>Nombre :</td>
  13.               <td><input name="email" value="" /> <span class="required">*</span></td>
  14.             </tr>
  15.             <tr>
  16.               <td>Clave :</td>
  17.               <td><input name="passwd" type="password" id="passwd" value="" /> <span class="required">*</span></td>
  18.             </tr>
  19.             <tr>
  20.               <td>&nbsp;</td>
  21.               <td style="color:#F00"><? echo $message ?></td>
  22.             </tr>
  23.             <tr>
  24.               <td>&nbsp;</td>
  25.               <td align="left"><input type="button" onclick="javascript:validate()" name="button" id="button" value="Entrar" /><span id="message_submit" style="color:#FF0000; border-left:2px"></span></td>
  26.             </tr>
  27.           </table>
  28.          </form>

Cabe mencionar que subo la misma página, la que trabajo en el localhost y ya la he subido varias veces.


gracias