The form contains a javascript:
<SCRIPT language=JavaScript>
function reload(form)
{
var val=form.AircraftType.options[form.AircraftType.options.selectedIndex].value;
self.location='report_form.php?AircraftType=' + val ;
}
</script>
/***********************************/
table of full details of the report that the user
chose in the previous page
/***********************************/
/***********************************/
display the exact same form where the user
first reports
/***********************************/
The problem:
i m able to display everything successfully with the $_GET id. but when i wan to edit and begin to click on the first drop down, it reloads the whole form and my id value is gone. The table that contains the details of the selected report shows up an error cause the reportid is lost.
What should i do?
should i put the modification of the report on another page? i did it this way so that the user could refer to the report he or she reported and change it.