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 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-26-2007, 03:32 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
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
Sponsored Links
  #2 (permalink)  
Old 07-26-2007, 03:34 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo 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 (permalink)  
Old 07-30-2007, 04:52 AM
saravanan saravanan is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 181
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 On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/php-programming/2882-when-you-use-_request-array-php.html
Posted By For Type Date
When to you use $_REQUEST[ ] array in php..? | Web Hosting This thread Refback 03-26-2008 05:26 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Three dimensional array geoblow Flash Actionscript Programming 1 09-21-2007 04:47 AM
What’s the difference between the System.Array.CopyTo() and System.Array.Clone() ? Archer C# Programming 2 08-25-2007 03:00 AM
Array filtering Jeyaseelansarc PHP Programming 1 07-17-2007 09:07 AM
What is the use of $_REQUEST method? Jeyaseelansarc PHP Programming 2 07-17-2007 01:42 AM
Paging array in PHP kingmaker PHP Programming 0 07-16-2007 11:11 PM


All times are GMT -7. The time now is 05:24 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0