Re: Linked drop down selection lists and dynamically generated links

From: Date: Sun, 07 Jul 2002 15:46:11 +0000
Subject: Re: Linked drop down selection lists and dynamically generated links
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105963@lists.php.net to get a copy of this message
At 7/7/2002, you wrote:
Is there any way of doing this so within a single page? Can this be done using only PHP or do I need to use Javascripts? Where would I be able to find examples of code which does this sort of processing?
Hi, I would do it in PHP, because you can never ever rely on Javascript (is it on? what version? what browser?). Javascript is good for additional UI smoothing, but should never be a requirement (nor should cookies be). Here's a simple quick code (partial) how I'd do it on one php page: http://photography-on-the.net/php/3_choice_select.php Use the resulting ID's to query the full data of the "product" found. There is source code and db dump link in the bottom of that page. The database is very normalized. I did and debugged this in couple of hours (I know, I'm slow), and this needs _plenty_ of more code like clearing choices from "product" and "version" when "platform" is changed, and checking valid "platform" id etc... this is just a core which gives you id's for additional queries. If you improve this please share the code! Hope this helps, Pekka http://photography-on-the.net

« previous php.general (#105963) next »