Re: [PHP] Dynamic dropdown lists (select)

2008-04-07 Thread Daniel Brown
On Fri, Apr 4, 2008 at 6:51 AM, Angelo Zanetti [EMAIL PROTECTED] wrote: Hi all, I am looking at options for creating a dynamic dropdown list. Ok here is the scenario: All values in the dropdown list (select/option field) are coming from the database. So there will be 2 dropdown

Re: [PHP] Dynamic dropdown lists (select)

2008-04-06 Thread tedd
At 12:51 PM +0200 4/4/08, Angelo Zanetti wrote: Hi all, I am looking at options for creating a dynamic dropdown list. Angelo Try this: http://webbytedd.com/cc/dynamic-option/index.php The javascript is there: http://webbytedd.com/cc/dynamic-option/a.js Cheers, tedd -- ---

Re: [PHP] Dynamic dropdown lists (select)

2008-04-06 Thread Kevin Waterson
On Fri, 2008-04-04 at 12:51 +0200, Angelo Zanetti wrote: So there will be 2 dropdown lists. First one say gets (for example) a list of cars, Then once the car is choosen the second list is populated with the list of models for the car choosen. Try something like this-

Re: [PHP] Dynamic dropdown lists (select)

2008-04-04 Thread Zoltán Németh
Angelo Zanetti írta: Hi all, I am looking at options for creating a dynamic dropdown list. Ok here is the scenario: All values in the dropdown list (select/option field) are coming from the database. So there will be 2 dropdown lists. First one say gets (for example) a list of cars,

Re: [PHP] Dynamic dropdown lists (select)

2008-04-04 Thread Richard Heyes
I would like to know if its possible to do this without posting as well as without the use of JS. Realistically, no. You could do it with VBScript, but then you're restricted to Internet Explorer. This is not desirable as I will be getting the values from the the DB using PHP, unless I can

Re: [PHP] Dynamic dropdown lists (select)

2008-04-04 Thread Ryan Yagatich
Angelo Zanetti wrote: Hi all, I am looking at options for creating a dynamic dropdown list. snip Is there any other idea or thing I can do? Im thinking maybe AJAX but this is for a mobile site (WAP/xHTML) site and Im not sure if the functionality will work on these devices. You're

Re: [PHP] Dynamic dropdown lists (select)

2008-04-04 Thread Daniel Brown
On Fri, Apr 4, 2008 at 9:33 AM, Ryan Yagatich [EMAIL PROTECTED] wrote: Angelo Zanetti wrote: Hi all, I am looking at options for creating a dynamic dropdown list. snip Is there any other idea or thing I can do? Im thinking maybe AJAX but this is for a mobile site (WAP/xHTML)

Re: [PHP] Dynamic dropdown lists (select)

2008-04-04 Thread Nathan Nobbe
On Fri, Apr 4, 2008 at 1:11 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 9:33 AM, Ryan Yagatich [EMAIL PROTECTED] wrote: Angelo Zanetti wrote: Hi all, I am looking at options for creating a dynamic dropdown list. snip Is there any other idea or thing

Re: [PHP] Dynamic dropdown lists (select)

2008-04-04 Thread Nitsan Bin-Nun
After reading the rest of the conversation, I think the best solution is the next thing: First, if I got this correct, you can extract the makes select-element from the mysql using a query? if so, then extract it and host is in a temp variable. The next thing is writing down a js code, that

Re: [PHP] Dynamic dropdown lists (select)

2008-04-04 Thread Nathan Nobbe
On Fri, Apr 4, 2008 at 2:19 PM, Nitsan Bin-Nun [EMAIL PROTECTED] wrote: After reading the rest of the conversation, I think the best solution is the next thing: First, if I got this correct, you can extract the makes select-element from the mysql using a query? if so, then extract it and host