[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 124건 4 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
49 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14979 0 01-02
48 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14911 0 11-11
47 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14868 0 12-24
46 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14577 0 11-10
45 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14571 0 09-29
44 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14569 0 09-01
43 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14451 0 12-24
42 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14411 0 12-10
41 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14410 0 05-12
40 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14393 0 04-10
39 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14331 0 02-28
38 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13747 0 04-18
37 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13652 0 04-18
36 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13634 0 05-02
35 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13410 0 04-16
34 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13262 0 05-26
33 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13036 0 01-07
32 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13034 0 03-18
31 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12607 0 03-16
30 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12292 0 12-19
29 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12143 0 08-15
28 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11992 0 07-07
27 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11985 0 07-01
26 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11916 0 08-22
25 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11799 0 01-02

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
7,141
어제
7,952
최대
8,233
전체
1,531,218
Copyright (c) 株式会社YHPLUS. All rights reserved.