Joke Collection Website - Blessing messages - Value delivery of thinkphp posts
Value delivery of thinkphp posts
The login page submits the form to action="__APP__/Index/login_do ",and then I write the login_do function in the indexing class:
Common function login_do ()
{
if($_SESSION['verify']! = md5($_POST['userauthcode']))
{
$ this-& gt; Error ("Wrong verification code!" );
}
$ username = $ _ POST[' username '];
$ password = $ _ POST[' password '];
$ password = MD5($ password);
$ user = M(' user ');
$ RES = $ user-& gt; Where ("user's www.hbbz08.com name =' $ username' & password =' $ password'")->; find();
Intermediate frequency (resolution)
{
Redirect ('.. /Home/home', 1, "< div align = \" center \ "style = \" padding:100px \ "> & ltfont color = \ "red \"> login succeeded! This page is jumping. ...
}
other
{
$ this-& gt; Error ('Login failed!' );
}
}
The following is the HomeAction class:
Class HomeAction extended operation
{
Common function home ()
{
$ this-& gt; Display ();
}
}
- Previous article:Discussion on how to cancel students' status.
- Next article:Why does a boy always send me inexplicable things?
- Related articles
- How to adjust the night mode of Huawei mobile phone
- Happy Women's Day to my wife.
- Is it dangerous to find a mobile phone card?
- How many short messages can an Android phone store? How to store more information?
- The mobile phone card suddenly can't send short messages online.
- Only when the nail is opened can you receive the message.
- Christmas greeting girlfriend briefing
- When is it appropriate to send a blessing message to customers on New Year's Day?
- Wang Sicong was enforced by the Shanghai Financial Court. Why was he forced?
- How does Samsung mobile phone S7562 distinguish which of the two sim cards has received the short message, and how to back up the short message and other information on the mac computer?