PHP Cookie Implementation remembers user name and password code
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/><form id=" Form1 "Name=" Form1 "method=" Post "action=" check_remember.php "><table width=" "border=" 1 "align=" center "cellpadding=" 0 "cellspacing=" 0 "><thead><tr><td colspan=" 2 "align=" Center ><b> Remember user name and password </b></td></tr></thead><tr align= "center" ><td> User Name: </td><td><input type= "text" value= "<?php echo $_cookie[' name '];? > "name=" name "></td></tr><tr align=" center ><td> Password: </td><td><input type= "password" name= "password" value= "<?php echo $_cookie[' password ']?>" ></td></tr><tr align= "Center" ><td> Remember user name and password </td><td><?php if ($_cookie[' remember ') = = 1) {? ><input type= "checkbox" Name= "Remember" value= "1" checked><?php}else{($_cookie[' remember '] = = "")? ><input type= " CheckBox "Name=" Remember "value=" 1 "><?php}?></td></TR><TR align= "center" ><td colspan= "2" ><input type= "Submit" name= "submit" value= "Submit"/></ Td></tr></table></form>
2, the detection Password page-check_remember.php
The above is the PHP cookie implementation remember the user name and password code (text) of the content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!