iSnare.com - Free Content Articles Directory
Authors Contents [Advanced Search][Add OpenSearch][Job Search]
Distribute your articles to thousands of article sites for only $2 and below! Read more...

Index  Computers and Technology
 

Use Programming Guides Wisely and Methodically

 
[ Contact the Author] [ Send to a Friend] [ Article Publisher] [Make PDF] [ Print] [ Bookmark & Share]
 
Read our Terms of Service before reprinting this article. The submitter specified above has claimed the rights to this article.
Jon Caldwell

PHP as a scripting language means it is designed to work with ease of use on web page designs. Such pages often require the user to input data which can then be treated as input to the various elements of the program that are contained within the script to obtain the desired result. The PHP $_Get and $_Post, are samples of variables that are used to obtain information from forms like the registration form on a membership page.

HTML forms and PHP work hand in hand together in such a way that any element in an HTML page is readily available to PHP scripts.

The sample page in the previous post contains two input fields that are name and age, when the user inputs the data and clicks on the submit button, the form’s data is sent to the file “welcome.php” file. The resulting php file would look something like this:

Welcome.

You are years old

The output of the script we made would look like:
Welcome Ernie
You are 35 years old.

That would be an overview of the full potential of the $_GET and $_POST variables and they will be discussed in depth later as we go deeper into their functionality in PHP scripts.

As the previous post discussed, PHP is very easy to use with web pages for the language has all the elements of a web page as a useable element. Now, going forward, forms or pages are easily handled and checked on the user end, meaning when you open a page the data input is easier to verify on the user side rather than have the input sent back to the server for checking and then returning any errors should there be any. This reduces load on the server and network having the data validated on the user end, allowing the information to be sent when the form receives all correct input. This type of handling is called client side validation where the input page verifies itself only requesting for the next step in a process when it returns true (all entries are correct). This way, the error checking and return function is on the client side reducing network and server load.

The $_GET variable is an array of variable names with the corresponding values sent by the HTTP GET method. It is used to collect values from a form by using the method=”get”. All information sent by a form using this method is visible to all on the browser’s address bar but it is limited to only 100 characters.

Take note that the variable contents and names are verbosely displayed so do not forget to take that into account when using the variable for forms processing.

The file “welcome.php” can now use the $_GET variable to obtain all the required information which is shown on the address bar. As it does that, all the name fields of the form will automatically be the ID keys in the $_GET array variable.

The variable is an array of variable names and values that is sent by the HTTP POST method. The $_POST variable is used to collect values from a form with the method=”post”. The information sent from a form through this method is invisible to others and has no limits with concerns to the amount of information to be sent.

Important NoticeDISCLAIMER: All information, content, and data in this article are sole opinions and/or findings of the individual user or organization that registered and submitted this article at Isnare.com without any fee. The article is strictly for educational or entertainment purposes only and should not be used in any way, implemented or applied without consultation from a professional. We at Isnare.com do not, in anyway, contribute or include our own findings, facts and opinions in any articles presented in this site. Publishing this article does not constitute Isnare.com's support or sponsorship for this article. Isnare.com is an article publishing service. Please read our Terms of Service for more information.

Jon Caldwell is a professional content manager. Much of his articles can be found at http://phpprogrammingguide.com

Article Tags: input [See Dictionary], post [See Dictionary], variable [See Dictionary]
Got a question about this article? Ask the community!
Article published on July 01, 2008 at Isnare.com
 
Rate this article:

Find the Best Design Techniques Today
Submitted by: Jon Caldwell

Make it uncomplicated for your guests to discover content that they desire on your site If you have thousands of piece of writing on your webpage and your guest needs to become aware of one single editorial from that heap, then you have to present a possible means to allow your visitors to do that with no annoyance...

Make Good Use of Online Resources
Submitted by: Jon Caldwell

A globally recognized avatar or to put it short, a Gravatar, was conceptualized by Tom Werner It is simply an avatar image that appears beside your name everytime you comment on gravatar enabled sites...

How to Fully Utilize Web Innovations Today
Submitted by: Jon Caldwell

An external corporate blog is a publicly-viewable corporate blog where the company’s employees or spokespersons share their opinions...

Search and Put Web Innovations to Good Use
Submitted by: Jon Caldwell

There’s an alternative for advanced or revolutionary technology which might be risky Bleeding-edge technology requires systems that are presently in the early development stage and not even set or proven for reliable work...

Learning and Creating Great Pages on the Web
Submitted by: Jon Caldwell

Be specific with your topic when choosing your web headline because they will determine the interest of your audience...

Get the Most Out of Online Resources
Submitted by: Jon Caldwell

One thing you will certainly be impressed with is the types of interactive designs that most web programmers put into sites today...

Choose Internet Service Providers Analytically
Submitted by: Jon Caldwell

http://Comcastnet, owned by the Comcast Corporation which is the largest cable tv company and second largest internet service provider in the USA, was hacked for several hours last Wednesday, May 29...

Get Everything to Know About API
Submitted by: Jon Caldwell

Most individuals have a number of public profiles and blogs But it can be tedious to make all the connections with all your contacts from one site to another...

Upload Your Files the Right Way
Submitted by: Jon Caldwell

One of the methods to access an FTP site is to place a directory of files in one’s computer and allow his clients to access them by implementing the use of certain User IDs and passwords...

Firewalls For Better Security
Submitted by: Jon Caldwell

AVG has been a long-time user favorite due to its free available softwares (Virus Scanning, Spyware, and Rootkit protection), though, of course, paying users have the benefits of maximizing more options and features available to them...

Think Right With the Right Anti-Virus Software
Submitted by: Jon Caldwell

If you encounter a virus attack, do something at once to prevent the spread of the virus to your system...

Meet New People Online
Submitted by: Jon Caldwell

Was it ever possible to talk to your friend on the latest fashion trend in Yahoo Messenger, then your clients wanting inquire about a company product in MSN Messenger...

Downloading the Free Software Today
Submitted by: Jon Caldwell

Cache and Temporary Internet Files can be one of the main reasons why we experience slow computers Because according to a study “70% of website we visit, we do not return to...

Buy Your Laptops Wisely
Submitted by: Jon Caldwell

Toshiba has always been among the top choices when it comes to mobile computing choices It has been tested and is a known brand in the laptop industry and chances are this new model, the Toshiba Satellite A305 will not be far from being another hot commodity for techie freaks today...

Getting Jiggy With MP3 Players
Submitted by: Jon Caldwell

Different mobile phones support different type of ringing tones from simple polytones to upbeat polyphonic tones...

How to Install Aftermarket Stereo in Vauxhall Agila
Submitted by: Jack Wylde

DESCRIPTION: The radio installation in VAUXHALL AGILA Some Cars have steering controls from new and when you replace your radio...

Don't Ruin Your Laminator - 4 Reasons to Always Use a Carrier With Your Pouch Laminating Machine
Submitted by: Jeff McRitchie

One of the most important supplies you'll need when getting ready to use a pouch laminator is a carrier...

GBC ShredMaster CC195 Cross-Cut Shredder Review
Submitted by: Jeff McRitchie

If you've visited an office supply store recently or checked out paper shredders on the Internet, it probably seems like paper shredders are all alike, especially in the looks department...

Frequently Asked Questions About Spiral Coil Binding
Submitted by: Jeff McRitchie

Coil binding - also known as spiral binding - is a very popular method of binding, but it can be difficult to understand how it's done...

An Overview of the GBC C-75 Comb Binding Machine
Submitted by: Jeff McRitchie

If you are looking for an inexpensive comb binding machine for your office or home office you might be considering the GBC C75...

5 Great Features of the Rhin-O-Tuff HD6500
Submitted by: Jeff McRitchie

Designed for the heaviest duty users such as print and copy shops, binderies and large organizations, the Rhino Tuff HD6500 is a machine that offers top of the line flexibility and capacity...

Comparing the Swingline SmartCut EasyBlade and EasyBlade Plus Rotary Trimmers
Submitted by: Jeff McRitchie

At first glance, Swingline's SmartCut EasyBlade and EasyBlade Plus may look very similar, except for the price...

Five Reasons to Consider the Rhino-Tuff OD4000 Modular Binding Punch
Submitted by: Jeff McRitchie

Though it may be the smallest of Rhino's electric interchangeable punches, the OD4000 offers you about as much as a binding punch can offer...

Carnival of New Digital Camera Camcorder
Submitted by: Leo Vegner

The category of camcorder is one broad category of the old and new, dynamic and basic offing in the world of digital photography...

DirectAccess Takes the Place of VPN For Windows Seven
Submitted by: Gregg Housh

Microsoft has unveiled Direct Access for Windows 7 and Windows Server 2008, remotely connecting users to their office as if they were right there...

Looking For Reliable Software To Restore Memory Cards Files
Submitted by: Lance Edwards

Well, bad things always happen There is no exception...

Where Can You Sell Your Used Toner Cartridges?
Submitted by: Adriana N

Many hi-tech devices now come with many accessories, components, and specific parts For instance, there are many computer related devices that over time will require new parts...

History of Dell Computers
Submitted by: Adriana Noton

Dell is a well-known computer company that has been around for over 20 years Most people recognize the name and thousands of people buy new Dell products every day...

Windows 7 Buyer Info
Submitted by: Atherton Arkell

There have been so many problems with the Windows XP and Vista operating systems that when the new Windows came out, everyone wanted to be a Windows 7 buyer...

How To Install A Aftermarket Radio In BMW E87
Submitted by: Jack Wylde

TOOLS NEEDED: 10 & 13mm sockets Ratchet Wrench Flat Head Screwdriver Phillips Head Screwdriver Electrical Tape Coat Hanger or similar object Electric Drill 1/8" Drill Bit for Metal Dremel Tool (optional) Sandpaper (optional) INSTALLALING RADIO STEPS IN BMW E87: First pick out an aftermarket head unit...

Isnare.com Footer Divider

© 2004-2009. Isnare Free Articles - An Isnare Online Technologies Free Articles Project. All Rights Reserved.   Privacy Policy