title: how to name a mysql database after user input
body: <p>I would like to know how to make a text box for the user to type and then create a database named after this input.</p>
  
  <pre><code>&lt;?php
  /*
  code to connect and make a mysql database named after the user input
  */
  
  ?&gt;
  &lt;!DOCTYPE HTML&gt;    
  &lt;html&gt;
  &lt;head&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action=&lt;?php $_SERVER['PHP_SELF']; ?&gt;&gt;
  &lt;input type="text" name="databasename"&gt;
  &lt;input type="submit" name="submit"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>