Hello!
I'm quite new with PHP and javascript, so apologize me if this is an easy question.I have a form with a dropdown box and a GO button, used to select documents (from the dropdown box) and navigate to them (GO button). What I would like to do is to retrieve the document URL from the database when the dropdown item is selected and pass it to the button, so when clicked it sends the user to the document. The MySQL query looks like this:
SELECT `Bruel_URL` FROM `mpctz_rsform_bruels` WHERE `Bruel_ID` = GO.value
So the questions are:
- How do I get the value from the Bruel_ID and pass it to the MySQL query (I've represented it as GO.value in the query above)?
- How do I retrieve and store the Bruel_URL?
- How can I write a javascript function that sends the user to the Bruel_URL?
Thanks for your help!
Dani