hi,
i need to put the value of the 'chosen' javascript variable into a php db query. For the life of me I can't figure it out! It can't be that difficult to do. Any help is truly appreciated.
<script language=javascript>
<!--
function setOptions(chosen) {
var typebox = document.myform.type;
typebox.options.length = 0;
if (chosen == "null") {
selbox.options[selbox.options.length] = new Option('',' ');
}
if (chosen != "") {
<?
$query3 = "SELECT DISTINCT type FROM restaurants where city = '//need JavaScript chosen variable to go here'";