Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-16-2008, 05:06 AM $_post vs $_get
Average Talker

Posts: 21
Name: mahesh
Trades: 0
What is the difference between $_post and $_get. which is better one which can be used for forms.
__________________
Learn Photoshop filters effects in easy steps visit
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
s_srimahesh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-16-2008, 08:28 AM Re: $_post vs $_get
Extreme Talker

Posts: 177
Trades: 0
Always use POST on form data. The only time you really want to use GET data is say....you have a registration with a referral, but people can link other poeple registration with their referral automatically filled out...you would need $_GET for that. Which I guess is kinda using it for post data, but only before it's posted...

Generally...if you can do it with post data, do it.
kbfirebreather is offline
Reply With Quote
View Public Profile
 
Old 08-16-2008, 08:44 AM Re: $_post vs $_get
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I totally agree. For one thing, you can send a LOT more data with a $_POST, and the data doesn't show up in the address bar.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-16-2008, 10:35 PM Re: $_post vs $_get
thehuskybear's Avatar
Ultra Talker

Posts: 362
Name: Sam
Location: Tucson, AZ
Trades: 1
I agree with the others..

GEt will send the data via the uri

yourpage.php?first=value1&second=value2

GET may also be good for search forms so the visitor can bookmark the search url
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
thehuskybear is offline
Reply With Quote
View Public Profile Visit thehuskybear's homepage!
 
Reply     « Reply to $_post vs $_get
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43616 seconds with 12 queries