title: Use html to call/use php function
body: <p>I'm having some trouble getting my <code>HTML</code> and <code>php</code> to work together.</p>
  
  <p>I've made a <code>onClick</code> that should run a <code>PHP function</code> i have in the top of the <code>PHP</code> file. But every time i click it, it says: <code>ReferenceError: deleteSub is not defined</code>. Can someone tell me what I've done wrong?</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;?php
                  if(mysql_num_rows($sql_select_delete) &gt; 0){
                       while($row = mysql_fetch_assoc($sql_select_delete)){
                           ?&gt;&lt;div class="abo_box"&gt;
                             &lt;label class="abo_navn" id="&lt;? echo $row["id"]; ?&gt;"&gt;&lt;? echo $row['abo_name'];  ?&gt;&lt;/label&gt;
                             &lt;label class="delete" onclick="deleteSub();"&gt;Delete&lt;/label&gt;
                           &lt;/div&gt;
                           &lt;?php
                       }
                  }
             ?&gt;
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>function deleteSub(){
        echo "deleted";
   }
  </code></pre>