感覺就像刷新頁面,雖然只有閃爍不到1秒,
但是感覺不好看
請問有辦法解決嗎?
<form id="form" name="form" method="post" action="test.php" >關鍵字
<input type="text" name="keyword" id="keyword" maxlength="10"/>
<label>
<input type="submit" name="button2" id="button2" size="10" value="搜尋" />
</label>
</form>
<?
$str="SELECT * FROM Register WHERE people_id LIKE '".$_POST[keyword]."' ";
$result=mysql_query($str);
list($people_id)=mysql_fetch_row($result);
if($_POST[keyword]!=$people_id)
{
echo "此人不在名單之中";
}
else
{
echo "此人在名單中";
}
?>