여러 버튼이 있을경우

form밖으로 빼야되는 경우가 생긴다.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE HTML>
<html>
<head>
<meta charset="euc-kr">
<title>HTML</title>
<style type="text/css">
body {
    background-color: #e7e7e7;
}
div {
    margin : 10px;
}
</style>
</head>
<body>
    <form action="33.php" id="frm">
        <div>아이디 : <br/><input type="text" name="id" value=""></div>
        <div>비밀번호: <br/><input type="text" name="pwd" value=""></div>
    </form>
        <div>
            <input type="button"
                    onclick="document.getElementById('frm').submit();"
                    value="전송">
            <a href="#" onclick="document.getElementById('frm').submit();">
            전송 </a>
        </div>
</body>
</html>
cs


+ Recent posts