|
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]
|