日期:2014-05-16 浏览次数:20540 次
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8/>
<title>War-game -Add Your score</title>
</head>
<body>
<h2>War game - add your score</h2>
<?php
if(!empty($_POST['submit']))
{
$first_name=$_POST['first_name'];
$last_name=$_POST['last_name'];
$score=$_POST['score'];
echo $first_name;
echo $last_name;
echo $score;
$dbc=mysqli_connect('localhost','root','pengyu2408','score_list')or die('error in connet');
$query="INSERT INTO score_lis(first_name,last_name,score) VALUES('$first_name','$last_name','$score')";
mysqli_query($dbc,$query)or die('error_2');
echo '<p>Thanks for adding your new high score!</p>';
echo '<p><strong>FIRST_NAME:</strong>'.$fi