PHP to do page landing page, transfer data, invalid variables, solve

Source: Internet
Author: User
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















User Login









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
User Login

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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.