GET, POST, REQUEST - Which is better?

This is a discussion on GET, POST, REQUEST - Which is better? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; It appears that I can use $_REQUEST for everything, but should I be using $_GET and $_POST?...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-25-2005
Fred Bradley
 
Posts: n/a
Default GET, POST, REQUEST - Which is better?

It appears that I can use $_REQUEST for everything, but should I be using
$_GET and $_POST?


Reply With Quote
  #2 (permalink)  
Old 03-25-2005
Sebestyén Dénes
 
Posts: n/a
Default Re: GET, POST, REQUEST - Which is better?

Fred Bradley wrote :
> It appears that I can use $_REQUEST for everything, but should I be using
> $_GET and $_POST?
>
>

Only if you want to specify where you want the data to be received from.
And in other case when you get the same variable in two ways (get and
post too)
Reply With Quote
  #3 (permalink)  
Old 03-28-2005
Marc Nadeau
 
Posts: n/a
Default Re: GET, POST, REQUEST - Which is better?

Fred Bradley a écrit:

> It appears that I can use $_REQUEST for everything, but should I be using
> $_GET and $_POST?


When i don't want the visitors to see/modify/play with the script parameters
in the browser's address line, i will prefer the POST/$_POST method.

Otherwise, the $_REQUEST method is ok.


--
__________________________________________________ ____
/ <Nanar> quitte vi avec :q! <jipe> c quoi ce smiley ? \
\ #mandrakefr /
------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT +1. The time now is 11:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0