title: Having an <inputbox> that enters to a php variable
body: <p>Ok so i have an inputbox and i am trying to make it so when you put lets say Title in that box it then adds it to a variable called $title and then i have $title in my title tags</p>
  
  <pre><code>&lt;form id="curse-form" class="nm" action="title.php" method="post" accept-charset="utf-8"&gt;              
      &lt;div  id="loading" style="display: none" class='alert'&gt;
          &lt;a class='close' data-dismiss='alert'&gt;×&lt;/a&gt;
          Loading
      &lt;/div&gt;
      &lt;div id="response"&gt;&lt;/div&gt;                      
      &lt;div class="content_form"&gt;
          &lt;input type="text" name="title" class="input-large" placeholder="Change title" value="&lt;?php echo htmlspecialchars($title); ?&gt;" /&gt;
          &lt;button class="btn btn-large btn-primary" type="submit"&gt;&lt;i class="icon-edit"&gt;&lt;/i&gt;Change title&lt;/button&gt;                           
      &lt;/div&gt;                                      
  &lt;/form&gt;
  </code></pre>
  
  <p></p>
  
  <p>No idea if i am doing it right with the form tags but in my title.php i just have php tags with $title=; but i am sure thats not how its done </p>
  
  <p>I am not using a database for this but i am not sure if that is needed... as you can jsut store the title in a global variable? or is it better to use a database</p>