 <p>It is not ideal to use $_GET with passwords as anyone can see it in the browser, anyway it's very easy to do. All you have to do is change your form tag to the following:</p> <pre><code>&lt;form action="login.php" method="get"&gt; </code></pre> <p>As you can see method is now get instead of post. In your php just use <code>$_GET</code> instead of <code>$_POST</code></p> <p>If you'd rather the options of your php script to use POST or GET you can always check if GET is set, if so use GET otherwise check if there is a POST. Therefore using the form will use POST (more secure) and in the url it will use GET. Try the following code:</p> <pre><code>&lt;?php if(isset($_GET['username']) &amp;&amp; isset($_GET['password'])){ $username = $_GET['username']; $password = $_GET['password']; $submitted = true; } else if(isset($_POST['username']) &amp;&amp; isset($_POST['password'])){ $username = $_POST['username']; $password = $_POST['password']; $submitted = true; } if($submitted){ // Do your code here.. // $username will give the username and $password will give the password. } ?&gt; </code></pre> <p>Hope it helps!</p>