passing values between php and javascript
Posted: Thu Nov 25, 2010 3:56 am
hello there,
can somebody help me with my php/javascript code?
i want to load the corresponding data to a form everytime the user
selects an entry from a listbox.
the listbox contains the ID which i use to lookup in my database.
i already have the javascript function that calls an external php file to
query the database.
I can already retrieve the specific records from my db depending on the selected option.
my problem is on how to populate the form with the data that i got.
from my external php, i dont know how to access the fields of the html page or how to send back the values to the calling javascript function.
how would i go about this one?
help please. thank you.
can somebody help me with my php/javascript code?
i want to load the corresponding data to a form everytime the user
selects an entry from a listbox.
the listbox contains the ID which i use to lookup in my database.
i already have the javascript function that calls an external php file to
query the database.
I can already retrieve the specific records from my db depending on the selected option.
my problem is on how to populate the form with the data that i got.
from my external php, i dont know how to access the fields of the html page or how to send back the values to the calling javascript function.
how would i go about this one?
help please. thank you.