Re: [PHP] Dynamically created dropdowns

2001-12-05 Thread Michael Egan
Michael, Many thanks for your help. I've opted for the 'straight PHP' route and, in the process, saved myself a lot of time pointlessly trying to see if JavaScript could read from the database. Michael Egan Michael Hall wrote: You can certainly do what you want in straight PHP if you

[PHP] Dynamically created dropdowns

2001-12-04 Thread Michael Egan
Hope this isn't an inappropriate message to send to this list. I suspect the response will largely concern JavaScript. Is there a way of altering the contents of one drop down menu according to the item selected in another? I'm creating a page allowing users to identify the make and model of

Re: [PHP] Dynamically created dropdowns

2001-12-04 Thread Michael Hall
You can certainly do what you want in straight PHP if you include a form submission after selecting the manufacturer. There is probably a way of doing it in JavaScript without a form submission, but not one that will read data from a MySQL database on a remote machine. JavaScript can't do that.

Re: [PHP] Dynamically created dropdowns

2001-12-04 Thread Jim
But, you can use PHP to dynamically create your .js file that your HTML file calls. Load each of your options and sub options into js arrays and write a js function that swaps out the pull down options on the onChange event of the previous pull down. Depending on the number of options you

RE: [PHP] Dynamically created dropdowns

2001-12-04 Thread Andrew Chase
:[EMAIL PROTECTED]] Subject: Re: [PHP] Dynamically created dropdowns You can certainly do what you want in straight PHP if you include a form submission after selecting the manufacturer. There is probably a way of doing it in JavaScript without a form submission, but not one that will read data