"" PHP Access form variables [PHP Note 001]
There are three ways that PHP provides access to form variables:
1, $name;
2. $_post[' name '],$_get[' name '],$_request[' name '],
3. $HTTP _post_vars[' name ']
$name; Short style$_post[' name ']
1. Get form variables$_post: Submit get form via POST $_get: Get form by Get mode $_request: by Get | | All data submitted by the POST method or combination can be obtained using $_request1 $_get ["nickname"]; 2 $_post ["nickname"]; 3 $_request
first, write the form page orderform.html, and use the Post method to request the server-side script file:processorder.php
Orderform.html:
Order PageJason's Shopping list
processorder.php:
Order resultsJason's
A simple example to demonstrate access to form variables in PHP
First, write the form page orderform.html, and use the Post method to request the server-side script file:processorder.php
Orderform.html:
Order PageJason's Shopping list
If you are using PHP4.2 or later, please refer to here. Set register_globalson or add the following code: functions (function_exists (ini_get) {$ onoffini_get (register_globals);} else {$ region (regist if you use PHP4.2 or later, please refer to
If you use the PHP4.2 version or above please see here. Set register_globals = On or add the following code://Allow script to work with Registerglobals off if (function_exists (Ini_get)) {$ono FF = Ini_get (register_globals); } else {$onoff =
When debugging ASP pages it can are very useful to the exactly what data is being sent when a form is posted. For this reason, I decided to create a handy little function that would display all of the form variable names and values. This function,
Workflow, from a business perspective, is the audit process, its performance is to control the different roles to see different data, different operations make the data flow different, generally there will be application, review, approval, approval
Preface:The Request object is mainly used to obtain data from the client, such as the data filled in by the user and the Cookie stored on the client.
1. Request object Overview
1. Main attributes
ApplicationPath
Obtain the root path
The request object is primarily used to obtain data from the client, such as the data that the user fills in the form, the cookie saved on the client, and so on, this article will explain its main role around the request object: Read the form
Objective:The request object is used primarily to obtain data from the client, such as the user fills in the form's data, the cookie saved on the client, and so on.
I. Overview of the Request object
1. Main properties
Applicationpath
The request object is primarily used to obtain data from the client, such as the data that the user fills in the form, the cookie saved on the client, and so on, this article will explain its main role around the request object: Read the form
If you've ever used a web search engine, or viewed an online bookstore, stock price, or ticket information, you might notice odd URLs like "http://host/path?user=Marty+Hall&origin=bwi&dest =lax ". The portion of this URL that follows the question
4.1 Overview of form data
If you've ever used a web search engine, or viewed an online bookstore, stock price, or ticket information, you might notice odd URLs like "http://host/path?user=Marty+Hall&origin=bwi&dest =lax ". The portion of this URL
Data
4.1 Overview of form data
If you've ever used a web search engine, or viewed an online bookstore, stock price, or ticket information, you might notice odd URLs like "http://host/path?user=Marty+Hall&origin=bwi&dest =lax ". The portion of this
4.1 overview of form data
If you have used a Web search engine, or browsed online bookstores, stock prices, and air tickets, you may find some strange URLs, such as "http: // host/path? User = Marty + Hall & origin = BWI & DEST = lax ". The part
js|servlet| data
4.1 Overview of form data
If you've ever used a web search engine, or viewed an online bookstore, stock price, or ticket information, you might notice odd URLs like "http://host/path?user=Marty+Hall&origin=bwi&dest =lax ". The
Most people use response. Redirect to direct users to another page, while others seem to prefer the mysterious server. Transfer. What is the difference between response. Redirect and server. transfer?
Response. Redirect simply sends a message to
PHP. INI configuration file roaming 2. The first part of this article has introduced the structure of the php. ini file and explained how to modify the PHP search path, handle errors, and related options of the parser. The second part will go into
The first part of this article has introduced the structure of the php. ini file and explained how to modify the PHP search path, handle errors, and related options of the parser. The second part will go deep into the configuration file, including
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.