[php] 입력된 값이 있어야만 버튼 활성화 시키기 > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[php] 입력된 값이 있어야만 버튼 활성화 시키기

페이지 정보

본문

<form name="flogin" method="post" onsubmit="return flogin_submit(this);">
<input type="hidden" name="url" value='<?=$url?>'>
<!-- memberskin_outbox -->
<div class="loginskin">

<ul>
<li class="error">IDまたはパスワードが正しくありません。</li>
</ul>
<!-- login_left -->

<ul>
    <li>USERNAME<span class="form-required" title="This field is required.">*</span></li>
    <li><input type=text name="mb_id" id="mb_id" itemname="USERNAME" onchange='proces()' /></li>
</ul>

<ul>
    <li>PASSWORD<span class="form-required" title="This field is required.">*</span></li>
    <li><input type="password" name="mb_password" id="login_mb_password" name="login_mb_password" itemname="PASSWORD" onchange='proces()' /></li>

<div style="padding:20px 0; text-align:center;">
    <input type="submit" id="btn_submit" name="btn_submit" accesskey='s' value="ログイン">
    <input type="button" value='新規会員登録' onclick="document.location.href='./register.php';">
<br /><a href="./password_forget.php">ID、パスワードがわからない方はこちら</a>
</div>

<div style="clear:both; text-align:left;">
メンバーにご登録頂きますと、お客様情報の確認・変更など更に便利にご利用できます。
</div>
<!-- memberskin_outbox -->
</div>
</form>
<script language="javascript">
<!--
document.flogin.btn_submit.disabled = true;
document.onkeyup = proces;
document.onmouseup = proces;
document.onmousedown = proces;
function proces() {
if (document.flogin.mb_id.value == '') {
    document.flogin.btn_submit.disabled = true;
} else {
    document.flogin.btn_submit.disabled = false;
}

if (document.flogin.login_mb_password.value == '') {
    document.flogin.btn_submit.disabled = true;
} else {
    document.flogin.btn_submit.disabled = false;
}

}
//-->
</script>
추천0

댓글목록

profile_image
Total 126건 4 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
51 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15054 0 03-20
50 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15047 0 02-25
49 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14984 0 01-02
48 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14913 0 11-11
47 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14873 0 12-24
46 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14581 0 11-10
45 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14574 0 09-01
44 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14571 0 09-29
43 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14455 0 12-24
42 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14414 0 12-10
41 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14414 0 05-12
40 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14396 0 04-10
39 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14332 0 02-28
38 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13748 0 04-18
37 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13655 0 04-18
36 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13635 0 05-02
35 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13418 0 04-16
34 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13262 0 05-26
33 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13040 0 01-07
32 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13036 0 03-18
31 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12611 0 03-16
30 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12298 0 12-19
29 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12151 0 08-15
28 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12000 0 07-07
27 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11991 0 07-01

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
614
어제
7,784
최대
8,233
전체
1,532,475
Copyright (c) 株式会社YHPLUS. All rights reserved.