PHP Login Interface Problem
PHP set a total of three variables, the decision found only $select valid, the other two invalid, what is the matter?
Ask the expert to answer, catch the task, urgent
Do me a favor, change it, I appreciate it.
Login Interface Code:
<title>Untitled Document</title>
|
Southwest University of Nationalities |
Experimental Teaching Management System |
|
PHP Detection code:
@ $textfield =$_post[' TextField ');
@ $textfield 2=$_post[' textfield2 ');
@ $select =$_post[' select '];
if ($textfield = = "a") && ($textfield 2== "123") && ($select = = "B")//Input a,123, select the teacher is invalid, remove any
echo "
Fffffff
"; Conditions, enter arbitrary data, find ($select = = "B") is valid,
else//Other two statements are useless and must be false.
Header ("location:http://localhost/phpmyadmin/documentation.html");
Exit
?>
Reply to discussion (solution)
How many form!!! are you going to write?
How many form!!! are you going to write?
Don't understand?
A form will be OK, keep the first form, and the rest will be erased.
That's it
<title>Untitled Document</title>
|
Southwest University of Nationalities |
Experimental Teaching Management System |
|
You're going to reverse the sky, a text box a form, you can directly put the form in the table outside, you only need a form.