doulong4169 2015-11-05 02:10
浏览 63

如何将表单中的值从一个页面发送到另一个页面而不重新加载它

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>';
  • 写回答

1条回答 默认 最新

  • doutizhou5312 2015-11-05 02:38
    关注

    you can use AJAX. it can add a item without reloading it

    Ajax is a set of web development techniques utilizing many web technologies used on the client-side to create asynchronous Web applications.

    it is a good skill.

    评论

报告相同问题?