IT Community - Software Programming, Web Development and Technical Support

When to you use $_REQUEST[ ] array in php..?

This is a discussion on When to you use $_REQUEST[ ] array in php..? within the PHP Programming forums, part of the Web Development category; When to you use $_REQUEST[ ] array in php..?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 07-26-2007, 02:32 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 632
oxygen is on a distinguished road
Question When to you use $_REQUEST[ ] array in php..?

When to you use $_REQUEST[ ] array in php..?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-26-2007, 02:34 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN to kingmaker
Default Re: When to you use $_REQUEST[ ] array in php..?

If data is being sent to you, but it could come in multiple ways (for example, both GET and POST), you can use the $_REQUEST[ ] array rather than querying the others, reducing your chances of error.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-30-2007, 03:52 AM
saravanan saravanan is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 180
saravanan is on a distinguished road
Cool Re: When to you use $_REQUEST[ ] array in php..?

hi................
Contains all variables sent via HTTP GET, HTTP POST, and HTTP cookies.
This is basically the equivalent of combining $_GET, $_POST, and $_COOKIE, and is less dangerous than using $GLOBALS. However, as it does contain all variables from untrusted sources (that is, your visitors), you should still try to steer clear unless you have very good reason to use it. There's no equivalent to $_REQUEST in versions of PHP before v4.1.

Thaks

T. Saravanan
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Manipulating in array Jeyaseelansarc HTML, CSS and Javascript Coding Techniques 15 06-02-2008 03:08 AM
Three dimensional array geoblow Flash Actionscript Programming 1 09-21-2007 03:47 AM
What’s the difference between the System.Array.CopyTo() and System.Array.Clone() ? Archer C# Programming 2 08-25-2007 02:00 AM
Array filtering Jeyaseelansarc PHP Programming 1 07-17-2007 08:07 AM
What is the use of $_REQUEST method? Jeyaseelansarc PHP Programming 2 07-17-2007 12:42 AM


All times are GMT -7. The time now is 06:36 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0