This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GET or POST method

 
Monica Smith
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
anyone in the group please let me know regarding foll.:
if there is an HTML form and I am entering some keywords in the textbox and press SEARCH button, which is considered preferable/efficient: GET or POST or BOTH.
Thanks in advance,
Regards,
Monica
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not so sure about efficiency, but rest depends on your requirements - if the search term is small and you'd like to allow your user to bookmark the page, then GET would be a better option.
HTH,
- Manish
 
Amy Phillips
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It also depends on security, with the Get method all values are passed through the browsers address bar so things like passwords clearly cannot be passed this way and so use Post which hides them.
Amy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic