Re: Sample script files with 3 different select boxes with mysql conditions in select boxes
| From: | Jim Lucas | Date: | Thu, 03 Jan 2008 15:31:21 +0000 |
| Subject: | Re: Sample script files with 3 different select boxes with mysql conditions in select boxes | ||
| References: | 1 2 | Groups: | php.db php.general |
| Request: | Send a blank email to php-db+get-44480@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
> On Thu, 2008-01-03 at 09:18 -0600, Balaji A wrote:
>> Hi,
>>
>> I have a table with the below fields. (id, title, language, author &
>> link to the book).
>>
>> Initially I want to display a page with 3 select boxes (language,
>> author & title).
>>
>> Initially first select box displays the available language by querying
>> the database. On selecting one language, author select box should show
>> the matching records from the database. After selecting the author,
>> matching records should display in title.
>>
>> Could any body send the sample script files with 3 select boxes?
>
> Anything else you'd like to add to the requirements document?
>
> Cheers,
> Rob.
I would think it be best if it was javascript based so it dynamically loads the data via AJAX or a
predefined JS hash, but then when JS was disabled, it would be best if it fell back to old school
and submitted the form when I select the lang->auth->book.
Thanks
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare