I am having another little issue here with get or post.
I have created a form like this
Code: Select all
<form name="form1" id="form1" method="post" action="admin">
<div align="right">
<input name="usrname" type="text" id="usrname" />
<input name="pwd" type="password" id="pwd" />
<input name="Submit" type="submit" class="style4" value="Submit" />
</div>
</form>Code: Select all
$sql = "SELECT companyname, firstname, lastname, email, password, ulevel, username, jobtitle, website FROM users WHERE username='$_POST[usrname]' AND password='$_POST[pwd]' ORDER BY companyname";Yet if I type in my browser http://svr1/myadminpage.php?usrname=myu ... mypassword it works great.
Can anyone tell me where my problem is?
Thanks