Joke Collection Website - Blessing messages - Value delivery of thinkphp posts

Value delivery of thinkphp posts

I use ThinkPHP as the login page.

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 ();

}

}