[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 825건 16 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
450 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16756 0 03-27
449 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14286 0 04-10
448 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 21836 0 04-20
447 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18524 0 04-30
446 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18090 0 05-07
445 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14588 0 05-08
444 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13003 0 05-08
443 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15012 0 05-08
442 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16540 0 05-12
441 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11605 0 05-18
440 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12070 0 05-21
439 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13858 0 05-22
438 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16124 0 05-31
437 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18561 0 05-31
436 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15787 0 06-11
435 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15678 0 06-11
434 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16693 0 06-12
433 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18758 0 06-12
432 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17713 0 06-12
431 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13704 0 06-12
열람중 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15408 0 06-14
429 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13019 0 06-14
428 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14180 0 07-21
427 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16946 0 07-23
426 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 27335 0 08-06

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
3,648
어제
7,268
최대
8,233
전체
1,512,353
Copyright (c) 株式会社YHPLUS. All rights reserved.