I have designed a form in html5 with 4 dropdowns 1-Year 2-Department 3-Semester 4-Subject
I have used php to get the values of year,department,and semester.Now what i want is that based on the user selection for year,department,semester i want to get the subjects dynamically
I have written a query to get the subjects based on year,department,and semester
Query //for subject dropdown
select s.sub_name from
subject s
inner join year y
on s.year_id=y.year_id
inner join dept d
on s.dept_id=d.dept_id
inner join sem sm
on s.sem_id=sm.sem_id
where y.year_id='' and // get selected value from dropdown
d.dept_id='' and // get selected value from dropdown
sm.sem_id=''// get selected value from dropdown
Now how will i send those selected drop down values to the query in php dynamically.