Home >Backend Development >PHP Tutorial >调查问卷数据提交有关问题
调查问卷数据提交问题
一个有10道题的调查问卷,怎么将答好的这10道题的调查问卷,一点击提交按钮后,让它全都插入到数据库中去啊,请高人指点???代码如下:
require(dirname(__FILE__)."/../include/common.inc.php");
require(DEDEINC."/dedevote.class.php");
$link = @mysql_connect('localhost','root','') or die('Could not connect: ' . mysql_error());
$selected = @mysql_select_db("xmucms",$link);
mysql_query("SET NAMES UTF8");
$result = @mysql_query("SELECT * FROM `dede_vote` ORDER BY aid ASC",$link);
echo "