From the validation rules in the previous section, we see that "Name", "e-mail", and "Gender" fields are required. These fields cannot be empty and must be filled out in an HTML form.
Field validation rules
Name is required. must contain letters
PHP Form Verification-Verify e-mail and URLs
PHP form must be filled in
PHP form Complete
This section shows you how to verify your name, email, and URL.
PHP-Validating names
The following code shows a simple way to check whether the Name field
has not written a blog for a long time. has done a year PHP development . recommended a quick PHP, IDE. adobe dreamweaver not wrong, that is dreamweaver, currently I use Dreamweaver CS5 write more than 10W line code Many people do not know,
mybb1.6 upgrade to 1.8 upgrade process, encountered numerous problems, recently found a Mybb1.8 database core operation update_query the code in a serious bug, resulting in the data deposit missing the front 0, tossing a few hours, found that the
a few years ago, I had the opportunity to participate in some interesting projects and work independently on development, upgrades, refactoring, and development of new features. This article summarizes some of the key errors that PHP programmers
A company is composed of each member of the work, each member has a different attribute (name, position, salary), according to different rank, constitute a tree-shaped structure. The general manager is the root node of this tree, because he has no
using PHP to develop applications, especially Web applications, often requires the generation of random passwords, such as user registration to generate a random password, the user reset password also need to generate a random password. Random
because the project needs, to the session in PHP to save some data, but there is always an expiration can not be processed, here is the expiration of the session setting, if set the session expires invalid, please look at the following workaround:
/** function: PHP Perfect implementation download remote picture saved to local * parameters: File URL, save file directory, save file name, use the download method * When the save file name is empty then use the original name of the remote file
About the upload principle and simple upload operation:
1. Form Tag Enctype PropertyThe enctype= "Multipart/form-data" in the form is the MIME encoding used to set up the form.By default, this encoding format is application/x-www-form-urlencoded
1 developer users can only create db for the MyISAM storage engine. Enterprise users can create InnoDB.
2 memcache Be sure to initialize to use MySQL. Daily rate of
3 Each app can create up to 10 SVN branches
4 storage Each can create up to 10
0x00 background
This estimate a lot of classmates looked disdain, think is Rotten street thing:
. htaccess files form the PHP backdoor
Then I'll have a new one:. User.ini. It is more extensive than the. htaccess, whether it is nginx/apache/iis, as
In the development of PHP, because of our country's language environment problems, so we often need to deal with the Chinese. In PHP, we all know that there are special MB_SUBSTR and Mb_strlen functions that can intercept and calculate the length of
PHP downloads two methods of file and code.
Two ways to share PHP implementation download files. Sharing, useful to the friends to see OH.
Method One:
The above code uses the PHP header function, you can refer to the following article:A simple
In the previous section, the data source schema mode table data entry, data source schema mode and data entry data source schema mode activity record, compared to the three data source schema mode, the data mapper appears more "tall".
First, the
Now many programmers may not be able to find a good effective way to improve their skills and programming skills, can also blindly stay in the current, and now we tell you some more practical and effective methods.
Some programmers can write at
Tidy up a problem in Phpchina:
1. Use the mysql_connect () function to create a singleton class, such as:
[Code=php]class db{ private static $db =null; Private function __construct () { ; }
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service