title: Take a value in PHP page sent with a jQuery function
body: <p>In this HTML page at the begin of the script I send the value of variable fin at the PHP page (<a href="http://sat3.altervista.org/index.php?valore=" rel="nofollow">http://sat3.altervista.org/index.php?valore=</a>"+ fin). In this PHP page I tried to take the value of variable but I didn't have success. </p>
  
  <pre><code>&lt;!doctype html&gt;
      &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Parsing&lt;/title&gt;
          &lt;script type="text/javascript" src="jquery-2.1.0.min.js"&gt;&lt;/script&gt;
  
  
      &lt;/head&gt;
      &lt;script&gt;
          var fin = "SAT000000002575";
          url = "http://sat3.altervista.org/index.php?valore="+ fin,
  
          data = {
              get_param: 'value'
          };
  
  
          $.getJSON(url, data, function (data) {
               for (var i = 0; i &lt; data.length; i++) {
                  var lin = data[i]["Nr SAT"];
                  $('body').append($('&lt;p&gt;').html('Numero Sat: &lt;a href ="http://sat3.altervista.org/NuovoFile.html?id=' + lin + '"&gt;' + data[i]["Nr SAT"] + '&lt;/a&gt;'));
                  $('body').append($('&lt;p&gt;').html('Data Apertura: ' + data[i]["Data Apertura"]));
              }
  
          });
  
      &lt;/script&gt;
  
          &lt;body&gt;
              &lt;header&gt;
  
              &lt;/header&gt;
  
  
          &lt;/body&gt;
  
      &lt;/html&gt;
  </code></pre>
  
  <p>This is the PHP page where I send the variable and I can not take it.</p>
  
  <pre><code>&lt;?php
  
  // Sopprimo gli errori del php
  error_reporting(0);
  
  // Includo la libreria
  require_once 'excel_reader2.php';
  
  
  
  $file_handle = fopen("leggimi2.csv", "r");
  
  
  
  //EDIT: Define an array to hold individual lines
  $data = array();
  
  while (!feof($file_handle) ) {
  
      //HERE I TAKE THE VALUE BUT IT DON'T CONTAIN NOTHING
      $myValue = $_GET["valore"];
  
  
      $line_of_text = fgetcsv($file_handle, 1024);
      if ($line_of_text[0] == $myValue)
      {
          $arr = array('Nr SAT' =&gt; $line_of_text[0],'Data Apertura' =&gt; $line_of_text[13], 'Tipo Servizio' =&gt; $line_of_text[1], 'Stato SAT' =&gt; $line_of_text[2],'Marca Terminale' =&gt; $line_of_text[4], 'Modello Terminale' =&gt; $line_of_text[5], 'IMEI guasto' =&gt; $line_of_text[6],'IMEI consegnato' =&gt; $line_of_text[7],'Famiglia guasto' =&gt; $line_of_text[8],'Descrizione guasto' =&gt; $line_of_text[9] );
  
          //EDIT: Add the line to the array
          $data[] = $arr;
      }
  
  }
  
  //EDIT: Encode the array as a JSON array of line objects
  echo json_encode($data);
  
  //$myValue = isset($_GET['myValue']) ? $_GET['myValue'] : '';
  
  
  
  fclose($file_handle);
  
  
  
  ?&gt;
  </code></pre>