My SESSION won't work
<p>Register Page:</p>

<pre><code>$_SESSION['namex']=$_POST['username'];
$_SESSION['passx']=$_POST['pass'];
$_SESSION['confirmpassx']=$_POST['confirmpass'];
$_SESSION['emailx']=$_POST['email'];
$_SESSION['confirmemailx']=$_POST['email2'];
$_SESSION['keyx']=$_POST['byond'];
</code></pre>

<p>Index Page</p>

<pre><code>$namex=$_POST['username'];
$passx=$_POST['pass'];
$pass2x=$_POST['confirmpass'];
$emailx=$_POST['email'];
$email2x=$_POST['email2'];
$ByondKeyx=$_POST['byond'];
str_replace($namex,$_SESSION['namex'],$namex);
str_replace($passx,$_SESSION['passx'],$passx);
str_replace($pass2x,$_SESSION['confirmpassx'],$pass2x);
str_replace($emailx,$_SESSION['emailx'],$emailx);
str_replace($email2x,$_SESSION['confirmemailx'],$email2x);
str_replace($keyx,$_SESSION['keyx'],$keyx);
</code></pre>

<p>Alright, so what these codes are supposed to do is the Register Page is doing it's thing (I think) and the Index page is a page that if something is wrong like used Username or password or the Username is invaild then the index page comes in and makes another form with the same data as the Register page. sorry if it's hard to read/understand. If you wanted to see my website and see what I mean then here's the link: <code>http://snyp.freeoda.com</code>
Thanks for reading and please help.</p>
