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 inc

RE: [PHP] Dynamically created dropdowns

2001-12-04 Thread Andrew Chase
That's true, but you could use PHP and the MySQL data to generate the JavaScript arrays for the dynamic menus... you can escape into PHP within the

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 have

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.