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
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
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
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.
4 matches
Mail list logo