Variable transmission between two web pages in PHP
[Author: beans teeth Add Time: 2001-5-28 22:53:08]
In the website design, we often use the user to log in to this method. After logging in, the general website will give different pages according to different users, and link to a new web page of the station or open a new web page. When we will also see that the user's information can be remembered, especially for the link or open the station after landing, there will be a greeting such as "XXX, good", and these of course In the process of logging in, the variable transmission, in the process of doing personal homepage, trying to transfer to several variables, and now discuss it. First, this is the most stupid method, but also the method I originally didn't get in touch with Session, cookie thought. This method is to transfer the variables to be transferred by the form. For example, after the user logs in, send his information such as $ username, $ ID and other information form to the next web page, of course, many cases, If you do not want to see, you can use a hidden input domain. Below is an example, assuming that $ username is sent to this page for verification as the verification, you want to pass to the next page, then create a file test4.php: $ Usrname = "Zhang Xiaoming"; ">