[Switch] php user logon code. A very detailed login code can be of great help to php beginners. if you need it, you can view it for free .. The index. php tutorial code is as follows! DOCTYPE is a very detailed login code, which can be of great help to php beginners. if you need it, you can view it for free.
.
Index. php tutorial
The code is as follows: |
|
System logon
System background login
|
Connect to connect. php
The code is as follows: |
|
$ Connect = mysql tutorial _ connect ("localhost", "root", "") or die ("server connection failed "); Mysql_select_db ("test", $ connect) or die ("no corresponding database is created "); $ SQL = "select * from admin "; ?> |
Piccheck. php
The code is as follows: |
|
/* * Created on 2011-8-10 * * To change the template for this generated file go * Window-Preferences-PHPeclips tutorial e-PHP-Code Templates */ Session_start (); $ Code = rand (). dechex (rand (). rand (). dechex (rand )); $ _ SESSION [pic] = $ code; $ Image = imagecreatetruecolor (50, 18 ); $ Color = imagecolorallocate ($ image, 0); // The first time you use the color palette, it is set to the background color. $ Colortext = imagecolorallocate ($ image, rand (100,255), rand (100,255), rand (100,255 )); Imagestring ($ image, 10, rand (1, 15), rand (1, 5), $ code, $ colortext ); Imagegif ($ image ); ?> |
Css.css file
The code is as follows: |
|
@ Charset "UTF-8 "; /* CSS Document */ Body { Background-color: # 9CF; Text-align: left; } # Denglu { Width: 400px; Margin-top: 0px; Margin-right: auto; Margin-bottom: 0px; Margin-left: auto; Background-image: url (images/login.gif ); Background-repeat: no-repeat; Height: 320px; Text-indent: 6px; } # Box # denglu form { Position: relative; Top: 50px; Left: 10px; Width: 92%; } . Must { Color: # F00; Font-size: 12px; } # Box # denglu # pic { Background-image: url (images/dot1.gif ); Background-repeat: no-repeat; Height: 20px; Width: 100px; Font-size: 12px; Color: # F00; Text-align: left; Line-height: 18px; Left: 10px; Top: 30px; Position: relative; } |
Bytes. . The index. php tutorial code is as follows! DOCTYPE...