CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Why does Profile Search use form POST?
Pages: [1]

Author Topic: Why does Profile Search use form POST?  (Read 1207 times)

tmcnulty1982

  • Guest
Why does Profile Search use form POST?
August 27, 2008, 08:35:32 am
I've setup a new CiviCRM Profile so that anonymous users can search our member database to get information about our members.  To me it seems like the search page should use the GET form method rather than POST because, as far as I can tell, searching the the contact database is entirely "idempotent":

http://www.cs.tut.fi/~jkorpela/forms/methods.html

I'd like to be able to link to predefined searches, but I can't do that with the current setup.  Is there a reason that it needs to use POST?

Thanks,
Tobias

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Why does Profile Search use form POST?
August 27, 2008, 11:22:47 am

for all forms we follow the PRG pattern (post->request->get, check wikipedia for more information). hence we use POST. There is no reason that we cannot use GET in a few places, but the code for now uses POST

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Why does Profile Search use form POST?

This forum was archived on 2017-11-26.