title: php a href post isset
body: <pre><code>&lt;?php echo isset($_GET["name"])?$_GET['name']:'ddd'; ?&gt;
  &lt;?php   
  ... 
  $url = ("http://localhost/web12/directory/list=".$_GET['name']."");
  //echo $url;
  ...
  ?&gt;
  &lt;form action="t.php" method="post" target="_self"&gt;
      &lt;a href="t.php?name=aaa"&gt;aaa&lt;/a&gt;
      &lt;a href="t.php?name=bbb"&gt;bbb&lt;/a&gt;
      &lt;a href="t.php?name=ccc"&gt;ccc&lt;/a&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>How do I make it so that if the post is empty(first time open the t.php),let the <code>$url = ("http://localhost/web12/directory/list=ddd");</code> ?</p>
  
  <p>Now my default <code>$_GET['name']</code> echoes nothing.<code>$url =("http://localhost/web12/directory/list=")</code> Thanks.</p>