This is the javascript
<SCRIPT language=JavaScript>
function reload(form)
{
var val=form.AircraftType.options[form.AircraftType.options.selectedIndex].value;
self.location='edit_report.php?AircraftType=' + val ;
}
</script>
i tried inserting PHP codes into the script but messed up. The drop downs are nt working any more. and the value of my $_GET['ReportID'] changes everytime i click on the drop down. like :
edit_report.php?ReportID=2?AircraftType=19
when i click on the drop down again,
edit_report.php?ReportID=2?AircraftType=19?Aircraf tType=11
and so on...
function reload(form)
{
var val=form.AircraftType.options[form.AircraftType.options.selectedIndex].value;
self.location='edit_report.php?ReportID=<? echo $_GET['ReportID']; ?>?AircraftType=' + val ;
}
how can i reload the page and keep my values at the same time... i manage to bring my report id over but when i used the javascript for drop downs, it reloads the page and everything is messed up...