title: how to use $_GET a html href=?asd
body: <p>I have a html view what contains an input text and textarea. I've made a SQL query that gives back a link <code>&lt;a href="?asd"&gt;$row['title']&lt;/a&gt;</code>.</p>
  
  <p>I'd like make a method where if I click the link, I load to in the html view. </p>
  
  <pre><code>if(isset($_GET['asd'])){//load to view}
  </code></pre>
  
  <p>I don't know how can I do this.</p>
  
  <p>Here is the view:</p>
  
  <pre><code>public function note($title,$text){
      ?&gt;
      &lt;html&gt;
      &lt;head&gt;&lt;title&gt;&lt;/title&gt;
          &lt;link rel="stylesheet" href="view/style.css"&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;div class="forms"&gt;
      &lt;form action="" method="post" class="style-1"&gt;
          &lt;input type="text" name="note_title" value='&lt;?php echo $title?&gt;'&gt;&lt;br&gt;
          &lt;input type="text" name="note_text" value='&lt;?php echo $text?&gt;'&gt;&lt;br&gt;
          &lt;input type="submit" name="sendNote" value="Save"&gt;
          &lt;input type="submit" name="cancel" value="Cancel"&gt;
  
  
      &lt;/form&gt;
          &lt;/div&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  
      &lt;?php
  
  }
  </code></pre>
  
  <p>The link:</p>
  
  <pre><code>echo "&lt;u&gt;&lt;a href='?editnote'&gt;".$title."&lt;/a&gt;&lt;/u&gt;";
  </code></pre>
  
  <p>Load to view:</p>
  
  <pre><code>if(isset($_GET['editnote'])){
        $id = $_SESSION['loggedInUser'];
        $title =  $model-&gt;getNameToSession("note","user_id",$id, 'title');
        $text =  $model-&gt;getNameToSession("note","user_id",$id, 'text');
  
  
        $view-&gt;note($title,$text);
  </code></pre>
  
  <p>But I don't know how to load the sql result to view. I think my link is wrong, I read about <code>href ans $_GET</code> and I saw this: <code>&lt;a href="something.php?id=$row['id']"&gt;</code>, but I don't know how I'd use it.</p>
  
  <p>Can anyone help me figure this out?</p>