[英]how to send values from the form from one page to another without reloading it
file name is course.php. 文件名是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>';
you can use AJAX
. 您可以使用
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. Ajax是一组Web开发技术,利用客户端使用的许多Web技术来创建异步Web应用程序。
it is a good skill. 这是一项很好的技能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.