HTML更換背景顏色--(新手練習)
阿新 • • 發佈:2018-12-17
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>更換背景顏色</title>
</head>
<body bgcolor="<?php echo $_GET['color']; ?>">
<h2>更換背景顏色</h2>
請選擇一個顏色:
<form action="bjys.php" method="get">
<select name="color">
<option value="green">綠色</option>
<option value="red">紅色</option>
<option value="blue">藍色</option>
<option value="purple">紫色</option>
<option value="brown">棕色</option>
<option value="pink">粉色</option>
</select>
<input type="submit">
</form>
</body>
</html>
明戈--2018-12-17--19:00:11