I was wondering and that has to do with my prewious question about dynamicaly updating combo boxes i have found the script that does just that but it's all in JavaScript. Now to and it dynamicaly willin all the information i need i have to use PHP ... question is how. Can anyone help me with this ? i have tried to insert php tag within JavaScript but that did not work well. How would i do that.?
Thanx
Greg
how to include php in JavaScript ?
Moderator: General Moderators
I think HormonX is getting confused between Server side PHP and client side Javascript, you cant use php to update the page once it has been loaded PHP is server side, you will need to write arrays into the Javascript section using php when you create the page and then once the page has loaded you will need to use Javascript to rewrite the combo boxes using the the arrays