I have a simple form like:
<form action="" method="post">
<input type="text" name="user" id="user" class="txt" value="Account" />
<input type="password" name="pw" id="pw" class="txt" value="Password" />
<div class="alignleft">
<a href="#">Forgot?</a>
</div>
<div class="alignright">
<input type="submit" name="login" class="login" value="Login" />
</div>
This form will log people into their control panel (we hold no sensitive data and we know there are better ways to login) but anyway they are not in a database, they login by simply following a URL like this:
www.example.com/user?user=USERNAME?pwrd=PASSWORD
So is the user follows that URL replacing the user and password with their own it will log them in.
How can I make my HTML form post the data to a URL and take them to the URL when they click submit?
Thanks!