SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to save search (like vBulletin)?

    HI:

    I have a search form with many options. I want a way to store the search and then display the results in pages:
    1) Without having to ask user to enter the options
    2) Split the search in pages

    Maybe something like vBulletin (like here on Sitepoint).

    There may be threads already here on Sitepoint, but I am not sure what to search for.

    Thanks
    ---------------------------
    Errors = Improved Programming.
    My Site

  2. #2
    An average geek earl-grey's Avatar
    Join Date
    Mar 2005
    Location
    Ukraine
    Posts
    1,403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can either pass all search arguments from page to page, or add an entry to a database, containing all specified search options. If you choose the latter way (more complex to do, but nicer URLs), you'd have to pass only search_id in the search result page links.

  3. #3
    SitePoint Zealot
    Join Date
    Sep 2007
    Posts
    136
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Save it all to a session

    $_SESSION['form_data'] = $_REQUEST;

    or tailor it however you'd like

  4. #4
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah.

    So, you mean store the user input (or search options) and then on next page use those to run the query.

    hmm.. nice idea.

    thanks
    ---------------------------
    Errors = Improved Programming.
    My Site


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •