PDA

Click to See Complete Forum and Search --> : New To PHP Please Help


XCustoms
Apr 9th, 2008, 02:35 PM
Hello I Hope You Can Help Me.
I'm new to PHP brought some books did what it says but still cant find the errors on it.

heres what i got

This is on Index.php

<Form Action="Process.php" Method="Post" ID="Login">
<TR>
<TD><span class="LGStyle">Username</span><br /></TD>
<TD><Input Name="User" Type="Text" class="LGStyle"/>
<br /></TD>
</TR>
<TR>
<TD><span class="LGStyle">Password</span></TD>
<TD><br>
<Input Name="Pass" Type="Text" class="LGStyle"/>
<br /></TD>
</TR>
</TR>
<Input Type="Submit" Name="LG" Value="Login" Class="LGStyle"/>
</Form>


And this on Process.php


<?PHP
If (($_GET["User"] == "Admin") && ($_Get["Pass"] == "ADPass")) {
Echo "Login Compelted";
Else {
Echo "Login Failed";
}
}
?>


Can someone please help me with this

visualAd
Apr 9th, 2008, 03:29 PM
You are using the post method to transfer the variables and accessing with $_GET. Instead you should be using $_POST.

XCustoms
Apr 9th, 2008, 08:03 PM
Oooh :D Thnx Man