Page 1 of 1

PHP,JAVA,MYSQL

Posted: Wed Feb 26, 2003 12:53 pm
by Etherguy
Hello All:

I have been on a search and destory mission looking for some sample code that incorporates PHP,Java, and MYSQL.

What I am looking to do is, have a drop down menu that has its values supplied from mysql database through PHP. That was the easy part, and it is working like a champ! Now what I want to happen is, when you select a value from the drop down, I want the java script to populate the screen / forms with the rest of the values from the DB, so basically it populates with the different values from each value in the pulldown.

Okay, if I have not lost you, does anyone have any sample code, or a remote idea :) on how to do this?

Thanks in advance!

Posted: Wed Feb 26, 2003 1:16 pm
by daven
Java or Javascript (ie-- do you want an applet-type thing or just some client-side code)?

If you want javascript, look here: viewtopic.php?t=6568
Granted, the code there is merely for a pair of select boxes, but the theory is applicable for other things as well.

If you want Java, then I suggest you make a module that can take the proper parameters and then have it affect the browser (basically, an applet that can take parameters). However, I do not have any sample code of that type anywhere.