예외처리같은거 안함 _-_
-- index.html --
<html>
<head>
<title> 나도 루저코드 만들어 봤다 -_- </title>
<body>
<from name = "inform" action = "./confirm_loser.php" method = "post">
키를 입력하세요(cm) : <input type = "text" size = "30" name = "height" />
<input type = "submit" value = "결과보기" />
</form>
</body>
</html>
-- confirm_loser.php --
<html>
<head>
<title> 당신도 루저인가!! </title>
<body>
<? php
$height = $_POST[height];
$height_num = 0 + $height;
if ($height_num < 180){
echo "<h1> 당신도 루저다!!! </h1>";
} else {
echo "<h6> 당신은 위너군 -_-</h6>";
}
?>
</body>
</html>
여러 타임 늦은 루저코드.
요즘 php과제하는지라 _-_
늦은 고로 트랙백따위 보내지 않음.