+++ gugudan.php
... | ... | @@ -0,0 +1,24 @@ |
1 | +<!doctype html> | |
2 | +<html lang="ko"> | |
3 | +<head> | |
4 | + <meta charset="UTF-8"> | |
5 | + <meta name="viewport" | |
6 | + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
7 | + <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
8 | + <title>Document</title> | |
9 | +</head> | |
10 | +<body> | |
11 | + <form action="gugudan.php" method="get"> | |
12 | + 단수 입력 : <input type="text" name="dan"> | |
13 | + <input type="submit" value="Send"> | |
14 | + </form> | |
15 | + <div> | |
16 | + <?php | |
17 | + $dan = $_GET['dan']; | |
18 | + for($i = 1; $i <= 9; $i++){ | |
19 | + echo $dan . "X" . $i . "=" . ($dan * $i) . "<br>"; | |
20 | + } | |
21 | + ?> | |
22 | + </div> | |
23 | +</body> | |
24 | +</html>(No newline at end of file) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?