if ($submit){if ($chkme){printf ("You have selected checkbox");}Else{printf ("You did not select a CheckBox");}}Else{?> Test Submission " method=post> Choose Me}?>
3 PHP PracticeMany of the features of PHP are related to other software or tools. Using the knowledge we've learned so far, we can try to build a simple interactive web site. We can learn a lot by using this process. Well, we're starting to focus on
Dir-returned instance Directory class,DescriptionDirDir (String $ path;Resource $ processing;The string is changed to (invalid)Invalid Rewind (invalid)Invalid closeness (invalid)). The path attribute is set to the dir of the path. There are three
Chapter 9 (6) directory operations for file processing (I)Opendir (target directory name) to open the directory function.Readdir (name of the opened Target Directory) reads the function of the Directory.Closedir (name of the opened Target Directory)
$ Link_id = mysql_connect ("localhist", "root", "qwaszx") or die ("connection failed! ");If ($ link_id){Mysql_select_db ("my_test ");If (! $ _ GET [id]) {$ Result = mysql_query ("select * from userinfo ");Echo " No. user name Gender age
In a very useful aspect, PHP is capable of managing file uploads to your server. Allowing users to upload files to your server to open a whole worm, so please be careful when uploading advantageous files.PHP-file upload: h tml formBefore you can use
Strrev definition and usageTheStrrev() The function returns a string.Let's take a look at its syntax.Strrev (string)Parameter descriptionString: required. The specified string. Let's take a look at simple instances. Echo strrev ("www.111cn.net ");?>
Definition and usageTheStrpos() Position returned by the function. For the first time, a series of other internal strings appear.If the string is not found, this function returns FALSE.SyntaxStrpos (string, find,
Definition and usageTheStrnatcasecmp() The function compares two strings using the "natural" algorithm.In a natural algorithm, number 2 is less than 10. In computer sorting, 10 are less than 2 because the first digit "10" is less than 2.This
Php getting started tutorial:StriposInstance tutorialDefinition and usageThe return position of the stripos () function. The start position of the string is displayed for the first time.If the string is not found, this function returns FALSE.Stripos(
Definition and usageThe strcmp () function compares two strings.This function returns:0-if the two strings are equal"0-if the string is smaller than the string"0-if the string is greater than the stringSyntaxStrcmp (string1,
Definition and usageThe md5_file () function calculates the MD5 hash file.The md5_file () function uses the MD5 message digest algorithm of the RSA Data Security Company.The M D5 message digest algorithm from RFC 1321: "The M D5 message digest
PHP str_replace () function example tutorialDefinition and usageThis str_replace () function replaces some characters with other character strings.This function works in the following rules:If the string is searched as an array, it returns an
PHP str_repeat () role and example tutorialDefinition and usageThe str_repeat () function repeats the specified number of times of a string.SyntaxStr_repeat (string, repeat)ParameterDescriptionStringThe specified string is repeated.RepeatThe
Php Getting Started Tutorial: php rtrim () instance tutorialDefinition and usageThe rtrim () function will remove spaces or other pre-determined properties from a string on the right.SyntaxRtrim (string, charlist)Parameter descriptionString required.
PHP ord () function and example tutorialDefinition and usageThe string of the first character of the ASCII value returned by the ord () function.SyntaxOrd (string)ParameterDescriptionStringRequired. The string to get an ASCII value fromLet's look at
PHP htmlspecialchars_decode () instance tutorialDefinition and usageThe htmlspecialchars_decode () function converts some predefined HTML entity characters.The HTML object is decoded as follows:& Become & (symbol)"To" (double quotation marks)'To'
PHP htmlspecialchars () function example tutorialDefinition and usageThe htmlspecialchars () function converts some predefined characters into HTML entities.The predefined characters are:& (Symbol) become &"(Double quotation marks)"'(Single quotes)'"
PHP date processing function mktime () tutorialDefinition and usageThe date of the Unix timestamp returned by the mktime () function.This timestamp contains the Unix time between seconds (January 1, 1970 00:00:00 GMT), and at the specified
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