관리 메뉴

moozi

10/21 join.html 본문

TIS_2020/빅데이터2020_1기

10/21 join.html

moozi 2020. 10. 21. 11:23

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>회원가입</title>

    <script>

        function check(){

            if(document.form1.id.value==""){

                alert("id를 입력하세요!");

                return false;

            }

            if(document.form1.pw.value==""){

                alert("pw를 입력하세요!");

                return false;

            }

            if(document.form1.name.value==""){

                alert("name을 입력하세요!");

                return false;

            }

            // if(document.form1.email.value==""){

            //     alert("email을 입력하세요!");

            //     return false;

            // }

        }

       

    </script>

</head>

<body>

    <h1>회원가입</h1>

    <form name="form1" action="join.jsp" method="POST" onsubmit="return check()">

        id <input type="text" name="id"><br>

        pw <input type="password" name="pw"><br>

        name <input type="text" name="name"><br>

        email <input type="text" name="email"><br>

        성별 <input type="radio" name="gender" value="m">

        <input type="radio" name="gender" value="f"><br>

        취미 <input type="checkbox" name="hobby1" value="등산">등산 

        <input type="checkbox" name="hobby2" value="독서">독서

        <input type="checkbox" name="hobby3" value="운동">운동 <br>

        직업 

        <select name="job">

            <option value="학생">학생</option>

            <option value="공무원">공무원</option>

            <option value="회사원">회사원</option>

            <option value="기타">기타</option>

        </select><br>

        자기소개<br>

        <textarea name="introduce" rows="5" cols="30"></textarea><br>

        사진  <input type="file" name="picture"><br>

        <!-- <input type="submit" value="회원가입" onclick="return check();"> -->

        <input type="submit" value="회원가입">

    </form>

</body>

</html>

'TIS_2020 > 빅데이터2020_1기' 카테고리의 다른 글

jquery layout  (0) 2020.10.22
javascript 주민번호 regular expression  (0) 2020.10.22
10/21 join.html  (0) 2020.10.21
포트폴리오 url  (15) 2020.10.20
10/19 kakao  (0) 2020.10.19
10/16 kakao  (0) 2020.10.16
0 Comments
댓글쓰기 폼