GET and POST method with previous page
<pre><code>&lt;input type="submit" value="Edit" onclick="window.location.replace('http://localhost/?username=&lt;?=$_POST['username']?&gt;&amp;email=&lt;?=$_POST['email']?&gt;');return true;"&gt;
</code></pre>

<p>I would like to use the above code to GET the username and email value after the user clicks the edit button. </p>

<p>Problem is I have a log on screen for user to log in then after the user confirms his inputs (username, email address) he is free to choose to re-edit or register. The above code is pressed when he refuses to register but wants to get back to the logon screen to edit his information, that is why the POST[xx] in the browser's location where I want to use $_GET to retrieve them. </p>
