file name is course.php. i have a dropdown in which all the courses from course table are displayed. i want that when i click on ADD link the course add to the grid without reloading the page.
<select name="course" class="text-field" >';
echo'<option value="-1" selected> Courses</option>';
$query1=mysql_query("select * from course");
while($rows=mysql_fetch_array($query1))
echo '<option value="'.$rows['crs_id'].'">'.$rows['crs_name'].'</option>';
echo'</select>';
echo '<a href="course.php?action=add"> ADD </a>';