Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/06/2013, 16:39
Pajaranny
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Session Php Error

Código PHP:
Ver original
  1. <?php
  2. $_SESSION['enlaces']=$_POST['return_enlaces'];
  3. ?>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8.  
  9. <title>Colabora SeriesDescarga</title>
  10.         <link rel='stylesheet' href='estilos1.css'>
  11.         <script src='..\colaboracion\jquery-1.7.2.min.js'></script>
  12. </head>
  13.  
  14. <body>
  15. <form class='contacto' name="formulario" action="linkinsertado3_2.php" method="post">
  16.  
  17. <?php
  18.  
  19. include ('conexion.php');
  20. $link= Conectarse();
  21.  
  22.  
  23. //Conseguimos las líneas
  24. $urls=explode("\n",$_POST['return_enlaces'])or die ("Error al recibir textarea");
  25.  
  26. //Conseguimos el total de las líneas
  27. $idcapitulostotal = sizeof($urls);
  28. //echo $idcapitulostotal;
  29.  
  30. ?>
  31.  
  32.  
  33. <?php
  34.  
  35. for($contador=0;$contador<$idcapitulostotal;$contador++){
  36.  
  37. $idenlace=$urls[$contador];
  38.  
  39. echo "$idtemporada x $x $idenlace";
  40.  
  41. $x=$x+1;
  42.  
  43. }
  44.  
  45.    
  46.    
  47. ?>
  48.  
  49. <input type="submit" value="Enviar" />
  50.  
  51. </form>



Como decía, en Localhost no falla, me falla solo en la web