You are here: Re: Help on sessions « PHP Programming Language « IT news, forums, messages
Re: Help on sessions

Posted by R. Rajesh Jeba Anbiah on 10/15/05 08:42

Hemanth wrote:
> I'm trying to create a script that searches a few database tables based
> on the search text and user search preferences. I created a PHP script
> (search_form.php) that displays textbox, a search button and a
> preferences link. The preferences link opens a popup (preferences.html)
> and lists search categories (checkboxes - with search only in column1,
> column2 etc. or ALL) and a select button. If the users specify the
> preferences I call search_form.php with an "prefs[]" array as argument.
> In search_form.php I invoke another script (search.php) - to display
> search results - based on user preferences and search text entered.
>
> My question is, how do I make the script remember these preferences and
> search text (if user selects links like "Back to Search Results" or
> "Back to new search" in other pages) till he closes the existing
> window. I understand I can use PHP sessions to acheive this but I
<snip>

FWIW, I would say that your design is not user friendly. What I
would prefer is that the provision to store the Preferences in DB in
separate page and in the search page again showing the "remembered
preferences" so that the user can override previous preferences in the
search page for the current search alone. Use of session for search
will break usability, IMHO. This is what is I'm witnessing in mantis
bts.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация