Ngôn Ngữ Php

The $_GET Variable

The $_GET variable is an array of variable names & values sent by the HTTP GET method.

Bạn đang xem: Ngôn ngữ php

Bạn vẫn xem: Get & post methods in php

The $_GET variable is used to collect values from a khung with method="get". Information sent from a khung with the GET method is visible to everyone (it will be displayed in the browser"s address bar) & it has limits on the amount of information to lớn sover (max. 100 characters).

Example

Name: Age:

When the user clicks the "Submit" button, the URL sent could look something lượt thích this:

http://www.obatambeienwasirherbal.com.com/welcome.php?name=Peter&age=37

The "welcome.php" file can now use the $_GET variable to lớn catch the form data (notice that the names of the size fields will automatically be the ID keys in the $_GET array):

Welcome .You are years old!

Why use $_GET?

Note:
When using the $_GET variable all variable names and values are displayed in the URL. So this method should not be used when sending passwords or other sensitive sầu information! However, because the variables are displayed in the URL, it is possible to lớn bookmark the page. This can be useful in some cases.

Note: The HTTPhường GET method is not suitable on large variable values; the value cannot exceed 100 characters.

The $_REQUEST Variable

The PHPhường $_REQUEST variable contains the contents of both $_GET, $_POST, và $_COOKIE.

Xem thêm: Mẹo Chỉnh Sửa Lỗi Xe Ghép Dọc Và Cách Khắc Phục Lỗi, Ghép Xe Dọc Và Cách Khắc Phục Lỗi

Example

Welcome .You are years old!


*

Get Your Diploma!

obatambeienwasirherbal.com" Online Certification Program is the perfect solution for busy professionals who need khổng lồ balance work, family, & career building.

The HTML Certificate is for developers who want lớn document their knowledge of HTML, XHTML, & CSS.

The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.

The XML Certificate is for developers who want lớn document their knowledge of XML, XML DOM và XSLT.

The PHP Certificate is for developers who want to document their knowledge of PHPhường. và Squốc lộ (MySQL).

WEB HOSTING
*

Web based chartingfor ASP.NET
$15 Domain NameRegistrationSave $trăng tròn / year!
Buy UK Domain NamesRegister Domain Names
Cheap Domain NamesCheap Web Hosting
Best Web Hosting
PHPhường. MySquốc lộ Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
WEB BUILDING
Website TemplatesFlash TemplatesWebsite BuilderInternet Business Opportunity
Custom Programming
FREE Trial or DemoWeb Content ManagerForms,Web Alerts,RSS
Download XML editor
FREE Flash Website
FREE Web Templates
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHPhường. Certification
ASP Certification

*

HOME orTop of Page