Php form submission special character filtering method
This article describes how to filter Special characters when submitting data in php forms. learn how php filters special characters and what character filtering functions are available.
: This article mainly introduces PHP escape characters. if you are interested in the PHP Tutorial, refer to it. In many cases, escape errors may occur when you capture some text from a third party. Summarize some php built-in escape functions, as
For more information about the submitted content escaping, please refer to the following link: Generally, when writing a PHP program, do you need to execute escaping before the textarea data is submitted to the database? because if there is php code
Several often overlooked but useful tags in the PHP smarty template engine, including capture tags, config_load tags, php tags, strip tags, fetch tags, and how to use define-defined constants directly in Smarty templates , this article will analyze
For more information about the submitted content escaping, please refer to the following link: Generally, when writing a PHP program, do you need to execute escaping before the textarea data is submitted to the database? because if there is php code
Several PHP functions related to special character processing & nbsp; function name & nbsp; meaning & nbsp; description htmlspecialchars converts single and double quotation marks, greater than and less than signs into HTML & #26684; type & amp; to &
Name of function
Interpretation
Introduced
Htmlspecialchars
Combine with, single double quotes, greater than, and less than sign into HTML format
& Turn into "Turn into "' Turn into & #039;> Turn into >
Function Name
Meaning
Introduction
Htmlspecialchars
Convert the Ampersand, single double quotation marks, greater than or less than sign into HTML Format
& Convert to & amp;"To & quot;'Convert to & #039;> Convert to & gt;
The current popular two PHP encryption, decryption tools Zend Guard and Iconcube Introduction, Zendiconcube
There are two main types of software that are currently on the market that are more popular for PHP encryption authorization:
(1) Zend
Name of function
Interpretation
Introduced
Htmlspecialchars
Combine with, single double quotes, greater than, and less than sign into HTML format
& Turn into "Turn into "' Turn into & #039;> Turn into >
One, several PHP functions related to special character processing
Name of function
Interpretation
Introduced
Htmlspecialchars
Combine with, single double quotes, greater than, and less than sign into HTML
PHP about the form to submit special character processing method to do a summary, mainly related to Htmlspecialchars/addslashes/stripslashes/strip_tags/mysql_real_escape_ A number of functions such as String are used together to communicate with
Strip_tags function usage and example tutorial. Define and use the strip_tags () function except for all HTML, XML, and PHP tags. The strip_tags (string, allow) parameter indicates that string is required. Definition and usage of the specified
Many times, some text is fetched from a third party, and an escape error occurs. Now summarize some of the escape functions that PHP comes with, as shown in
Name of function
Interpretation
Introduced
Several PHP functions related to special character handling
Name of function
Interpretation
Introduced
Htmlspecialchars
Combine with, single double quotes, greater than, and less than sign into HTML format
&
Several PHP functions related to special character handling
Name of function
Interpretation
Introduced
Htmlspecialchars
Combine with, single double quotes, greater than, and less than sign into HTML format
Tag: If cin height body padding decode rip null PHP
Name of function
Interpretation
Introduced
Htmlspecialchars
Combine with, single double quotes, greater than, and less than sign into HTML format
&
Name of function
Interpretation
Introduced
Htmlspecialchars
Combine with, single double quotes, greater than, and less than sign into HTML format
& Turn into "Turn into "' Turn into & #039;> Turn into >
View: three components of MVC, responsible for the presentation and output of information1.Creation of viewsThe location you create needs to be in a directory with the same name as the view directory remaining controller under the grouped directory.
1, the origin of the template
In the absence of template technology, the use of PHP development programs, usually PHP code and HTML mixed together. News listings, for example, are likely to be a newslist.php page, structured as follows:
?
read out
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.