title: How to send a mysql query from a php form?
body: <p>I'm creating a php web page and I need to send a mysql query with the form parameters. 
  Query I need to send: </p>
  
  <pre><code>INSERT INTO News (Titolo_news,Contenuto_news) VALUES
           ('*title from form*','*content from form*');
  </code></pre>
  
  <p>This is my actual code:</p>
  
  <pre><code>&lt;?php
  ...
  
  &lt;form class="action="#" method='POST'&gt;
  
    &lt;p&gt;Title:&lt;input name="title" required id="title" /&gt;&lt;/p&gt;
    &lt;p&gt;Content:&lt;input name="content" required id="content" /&gt;&lt;/p&gt;
    &lt;button class="login-button" type="submit" title="Confirm" onclick="
  
          QUERY HERE, RIGHT?
  
    "&gt;Confirm&lt;/button&gt;
  
  &lt;/form&gt;
  
  ...
  ?&gt;
  </code></pre>