title: Permalinks with PHP
body: <p>I am currently working on a website I am making from SCRATCH :) Anyhow users will be able to create accounts (login and register pages already done), and then they will be able to view there profile. Now the problem I am running into is each user needs there own permalink for there profile's URL. I do not know how to go about doing this though! :( All I can find is using Wordpress to do it for me, but I do not want that. I would like to go about doing this with only PHP and HTML/CSS. Please help me out, thank you! :)</p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>Thank you for the relpys, I am still a little confused though. Now if I use a GET, will that actually save the file? How exactly do permalinks work (sorry very confused! :O )? Like when I create the permalink is that creating a new file as well with the code inside of it? If so what would I be writing for that?</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>Sorry I am specifying what I am really asking. When a user created a account, I want it to AUTO create them a permalink (which would be a new file right?), how would I go about doing that?</p>
  
  <p><strong>UPDATE 3</strong></p>
  
  <p>Ok, so I am basically thinking of the same thing. So when a user creates a account this is the code that is executed:</p>
  
  <pre><code>//Create Account Page
  
  $inputquery = "INSERT INTO users username VALUES :username";
                          $datasend = $connection-&gt;prepare($inputquery);
                          $datasend-&gt;execute(array(':username'=&gt;utf8_decode($username),)); //Inputs it into the database
  
  $username = $_POST["username"]; //The username input, then lets say that the account was created with that
  
  $userprofile = fopen($username . ".php", "w"); //Makes a file with the users info, a PHP function
  
  $text =  include ('base.php'); //Grabbing the base layout
  
  fwrite($userprofile, $text); //Setting the base layout to the userprofile page
  </code></pre>
  
  <p>So once that is one the code will be in the file. Then when the page is loaded, that so called "base" code is still there, and then is replaced with the details of the user. That is my rough attempt at this, it should work! :) Thank You for all of your help! :D</p>