title: I want to create a unique id behind my URL and echo a page on it how to do this?
body: <p>I have a form and the URL is for example: <code>www.site.com/index.php</code>. But when I click the form button I want it to create a link like this <code>www.site.com/index.php?1wejf23912</code> and then echo a page on it where you can put a username and password. How to do this and get the input from that page on the example page like <code>www.site.com/index.php</code>. </p>
  
  <p>Thanks for the help.</p>
  
  <pre class="lang-php prettyprint-override"><code>
  &lt;?php
      require 'includes/header.php';
  ?&gt;
  
  &lt;main&gt;
      &lt;form action="includes/create-page.inc.php"&gt;
          &lt;button type="submit" name="create-submit" id="create-submit"&gt;Create Link
              With Page&lt;/button&gt;
      &lt;/form&gt;
  
      &lt;div class="show-input"&gt;
          &lt;a href="new-link"&gt;This is your link: &lt;?php echo $newLink; ?&gt;&lt;/a&gt;
          ...input from created page
          &lt;button type="submit" name="delete-url" id="delete-url"&gt;Delete New URL&lt;/button&gt;
      &lt;/div&gt;
  &lt;/main&gt;
  
  &lt;?php
      require 'includes/footer.php';
  ?&gt;
  </code></pre>