Click to See Complete Forum and Search --> : AdamBrill please come in
zw1971
09-21-2003, 09:53 AM
HI, Adam
Your code works. THanks so much, I 've got another question:
if I use insertAdjacentHTML to define text fields, how Can I refer to them in my php code?
Thanks again :)
AdamBrill
09-21-2003, 10:03 AM
Ok... First of all, why are you using JavaScript for that? You could do it with only PHP, and then it would work for everyone(since 13% (http://www.thecounter.com/stats/2003/May/javas.php) of users have JS disabled). Would that work for you?
zw1971
09-21-2003, 10:22 AM
What I want is a listbox, when it changes, the associate text fields will show up corresponding the selection. While I don't want to reload the page, I think the client site script language is the only choice.
AdamBrill
09-21-2003, 05:37 PM
You're right, you will need client side scripts for that. I would write it all in there with PHP and then just change it with JS. It's hard for me to tell you exactly what to do because I don't have access to your server/database... ;)