pass_los.php
3.36 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="basefont.css">
<TITLE>め〜るNiポン</TITLE>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
//入力必須チェック
function hissu_chk(pstrKomoku,pstrValue) {
strTarget = pstrValue.replace(/[ ]/g, ""); //スペースカット
if (strTarget=="") {
alert(pstrKomoku + "が入力されていません")
return false;
}
}
//スクリプトチェック
function script_chk(pstrKomoku,pstrValue){
strTarget = pstrValue.replace(/[ ]/g, ""); //スペースカット
data=strTarget.match(/[<,>]/g); //パターンマッチ
if (data) {
alert(pstrKomoku + "の入力に不正な文字が含まれています")
return false;
}
}
//メールアドレスチェック
function mailadr_chk(pacount,pdomain) {
stracount = "" + pacount
strdomain = "" + pdomain
if (stracount + strdomain != "") {
if(stracount=="" || strdomain==""){ //いずれかの入力なし
alert("メールアドレスの入力が不正です");
return false;
}
}
acountdata=pacount.match(/[^a-z0-9\-._]/g);
domaindata=pdomain.match(/[^a-z0-9\-._]/g);
if (acountdata || domaindata) {
alert("メールアドレスの入力が不正です");
return false;
}
}
//メールアドレスチェック
function mailadr_chk2(pacount) {
stracount = "" + pacount
if (stracount != "") {
if(stracount==""){ //入力なし
alert("メールアドレスの入力が不正です");
return false;
}
}
acountdata=pacount.match(/[^a-z0-9\-._]/g);
if (acountdata) {
alert("メールアドレスの入力が不正です");
return false;
}
}
function chk(){
if (hissu_chk("団体名",document.forms[0].group_name.value)==false) {
document.forms[0].group_name.focus();
return false;
}
if (script_chk("団体名",document.forms[0].group_name.value)==false) {
document.forms[0].group_name.focus();
return false;
}
if (mailadr_chk(document.forms[0].e_mail1.value,document.forms[0].e_mail2.value)==false) {
document.forms[0].pcemail1.focus();
return false;
}
document.forms[0].action="idchk.php";
document.forms[0].method="POST"
document.forms[0].submit();
return false;
}
-->
</SCRIPT>
</HEAD>
<body background="image/003_c.gif">
<center>
<form>
<TABLE border="0" height="275">
<TR>
<TD height="129" colspan="2" align="center"><img src="./admin/img/title_logo.gif" alt="めーるNiポン"></TD>
</TR>
<TR>
<TD height="129" colspan="2" align="center"><B>登録されている「団体名」「メールアドレス」をご入力ください。<br>
そのメールアドレスにご登録内容お知らせメールが届きます。</B></TD>
</TR>
<TR>
<TD height="20">団体名</TD>
<TD height="20"><INPUT type="text" maxlength="50" size="27" name="group_name" value=""></TD>
</TR>
<TR>
<TD height="20">メールアドレス
</TD>
<TD height="20"><input maxlength="50" size="27" value="" name="e_mail1">
@
<input maxlength="45" size="27" value="" name="e_mail2"></TD>
</TR>
<TR>
<TD colspan="2"><div align="center">
<INPUT type="button" onclick="return chk();" value=" 送信 " ><BR>
</TD>
</TR>
<TR>
<td colspan="2" align="center"><font size="-1" color="#666666"><BR><BR>Copyright (C) 2005
Media Tech Inc. All rights reserved.</font></td>
</TR>
</TABLE>
</form>
</center>
</body>
</HTML>