Go Back   BevyHost Webmaster Forum > Design & Development > Programming

Programming This area is designated for discussion of topics related to Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-17-2007, 04:44 PM
life31's Avatar
Senior Member
 
Join Date: Dec 2007
Posts: 2,282
Rep Power: 29
iTrader: (0)
life31 will become famous soon enough
Default $_post, $_get & $_request????

Any good PHP programmers out here? Needed some help?

I have seen many peoples using $_REQUEST instead of using $_POST or $_GET. And it works.

What does that $_REQUEST stand for?
Any significance about it?
When do i use $_REQUEST instead of GET or POST?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!Stumble this Post!Share on FacebookGoogle Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!
Reply With Quote

Sponsored links

  #2 (permalink)  
Old 01-12-2008, 11:43 AM
Senior Member
 
Join Date: Jan 2008
Location: New Zealand
Posts: 177
Rep Power: 2
iTrader: (0)
Surreal is an unknown quantity at this point
Default

You really don't need to use $_REQUEST instead of $_GET or $_POST. The $_REQUEST variable actually contains both the $_GET and $_POST within it. You can just carry on using $GET and $_POST rather than $_REQUEST.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!Stumble this Post!Share on FacebookGoogle Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!
Reply With Quote

  #3 (permalink)  
Old 01-12-2008, 12:07 PM
life31's Avatar
Senior Member
 
Join Date: Dec 2007
Posts: 2,282
Rep Power: 29
iTrader: (0)
life31 will become famous soon enough
Default

Thanks for the clarifaction. I always do use GET and POST and now its become a habbit sort of.

So its something like difficult to break habbits.But i think this indeed is a good habbit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!Stumble this Post!Share on FacebookGoogle Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!
Reply With Quote

  #4 (permalink)  
Old 01-12-2008, 12:13 PM
Senior Member
 
Join Date: Jan 2008
Location: New Zealand
Posts: 177
Rep Power: 2
iTrader: (0)
Surreal is an unknown quantity at this point
Default

It's no problem. And yes, using $_GET and $_POST is a good habit to get into as others who might eventually read your code would understand where the "data" was coming from.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!Stumble this Post!Share on FacebookGoogle Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!
Reply With Quote

Reply

Bookmarks

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

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


All times are GMT +2. The time now is 07:34 PM.




Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2008 BevyHost .Ad Management by RedTyger