<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>roo.boo</title>
</head>
<body background="../image/1.jpg" style="font-size:23px color:##FF0000 font-family:fatasy" >
<form action="sow.php" method="get">
<input name="check" type="radio" value="1" checked="checked">微笑
<input name="check" type="radio" value="2">嘲笑
<input name="check" type="radio" value="3">生气
<input name="check" type="radio" value="4">喜欢
<input type="submit" name= "sub">
</form>
<?php
if(isset($_GET['sub'])){
switch ($_GET['check']){
case "1";
echo "<img src= 'image/1.gif'>";
break;
case "2";
echo "<img src='image/2.gif'>";
break;
case "3";
echo "<img src='image/3.gif'>";
break;
case "4";
echo "<img src='image/4.gif'>";
break;
}
}
?>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>roo.boo</title>
</head>
<body background="../image/1.jpg" style="font-size:23px color:##FF0000 font-family:fatasy" >
<form action="sow.php" method="get">
<input name="check" type="radio" value="1" checked="checked">微笑
<input name="check" type="radio" value="2">嘲笑
<input name="check" type="radio" value="3">生气
<input name="check" type="radio" value="4">喜欢
<input type="submit" name= "sub">
</form>
<?php
if(isset($_GET['sub'])){
switch ($_GET['check']){
case "1";
echo "<img src= 'image/1.gif'>";
break;
case "2";
echo "<img src='image/2.gif'>";
break;
case "3";
echo "<img src='image/3.gif'>";
break;
case "4";
echo "<img src='image/4.gif'>";
break;
}
}
?>
</body>
</html>