I am learning PHP very quickly but am not a strong javascripter at all. What I am attempting to do is when a search engine pulls up that I built it populates a select box with the values from MySQL database and when I select one of those values it populates another select box with the corresponding correct values. I am using an onChange Event:
onChange="this.form.submit()
this submits the page so the second select box populates with the correct values
So far this works ok, the problem is that the onChange submits to itself. How can I get the form to submit to another page to pull all the other results from the database
Is there a javascript where I can do something like this:
onChange="<?=$PHP_SELF?>" so I won't have to use the form action to use the onChange box
I apologize, I know this isn't a javascript forum but I haven't had any luck finding anything like this. Please help if you can, I appreciate the time, thanks.