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..?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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. |
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |