The author of this article: Longlongago Blog address: http://blog.111cn.net/longlongago2000
During the winter vacation with ASP did a write Bo program, later wanted to use PHP to achieve, so on the internet to find the php+mysql installed, I found is the installation of automatic configuration (phpstudyadmin), very convenient, installed can be used, do not have to carry out complex configuration (heard configuration is very complex, I've never tried it before).
Start learning PHP, I know to use the example to learn PHP to get the fastest speed, think I used to learn ASP is to do a simple login verification, do up the idea of the same as the ASP, is the form of sending and receiving, precisely these two simple actions in later programming in the most used, can say that learn these two actions you begin to start. The code I wrote is as follows:
Login: test1.php
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title><? echo "dskdfj|". +++++++++++ ";?></title>
<body>
<form method= "POST" action= "test2.php" >
<table width= "border=" 1 ">
<tr>
<TD width= "> </td>"
<TD width= "><input" type= "text" name= "Text1"/></td>
<TD width= "8" > </td>
</tr>
<tr>
<td> </td>
<td><input type= "text" name= "Text2"/></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><label>
<input type= "Submit" name= "Submission" value= "submitted"/>
</label>
<input type= "Reset"