title: Passing PHP Next Page Variables
body: <p>I want to pass the php variable to the next page.</p>
  
  <p>I tried many things, but I did not succeed.
  Here is the attached case I tried.</p>
  
  <p><strong>index code</strong></p>
  
  <pre><code>&lt;script&gt;
  &lt;?php
  $con = mysqli_connect($db_host,$db_user,$db_passwd,$db_name);
  
  mysqli_set_charset($con, "utf8");
  
  $result = mysqli_query($con, "select * from StoreTable");
  
  $n = 1;
  while($row = mysqli_fetch_array($result)){
    $name = $row['name'];
    ?&gt;
    positions_1.push({ content:
      '&lt;div class="wrap"&gt;' +
      ' &lt;div&gt;&lt;a href="next.php?name=&lt;?= $name; ?&gt;" target="_blank" class="link"&gt;next page&lt;/a&gt;&lt;/div&gt;' +
      '&lt;/div&gt;'
    });
    &lt;?
  $n++;
  }
  ?&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>next code</strong></p>
  
  <pre><code>&lt;?php 
      echo $name;
  ?&gt;
  </code></pre>
  
  <p>url has been changed to a variable, but a blank screen is displayed. (Variables were not passed to the next page.)</p>