title: Saving current page URL to MySQL database
body: <p>I'm using a javascript step sequencer that records the current user-inputed drum pattern into the URL.</p>
  
  <p>So for example before any user input the url looks like: </p>
  
  <pre><code>http://localhost:8888/member-index.php#/0000/0000/0000/0000/0000/0000/0000
  </code></pre>
  
  <p>and then if the user inputs a basic drum beat the URL might look like:</p>
  
  <pre><code>http://localhost:8888/member-index.php#/8020/0808/aaaa/0000/0000/0000/0000
  </code></pre>
  
  <p>So I want to be able to save the user-created patterns to my MySQL database so that user's can save and load beats they've previously created.</p>
  
  <p>Could someone give me a quick example of what the PHP code would look like to save the pages current URL to a database?</p>
  
  <p>EDIT:</p>
  
  <p>People are saying to use $_GET - how would I use this with a URL like mine that is broken up into seven sections with "/" dividing them?</p>