質問編集履歴
1
投稿するソースコードを間違えましたのでソースコードを変更しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,20 @@
|
|
26
26
|
|
27
27
|
```ここに言語名を入力
|
28
28
|
|
29
|
+
<?php
|
30
|
+
|
31
|
+
$C_name = $_GET['C_name'];
|
32
|
+
|
33
|
+
$C_num = $_GET['C_num'];
|
34
|
+
|
35
|
+
$C_phon = $_GET['C_phon'];
|
36
|
+
|
37
|
+
$C_sa = $_GET['C_sa'];
|
38
|
+
|
39
|
+
?>
|
40
|
+
|
41
|
+
|
42
|
+
|
29
43
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
30
44
|
|
31
45
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
@@ -34,15 +48,13 @@
|
|
34
48
|
|
35
49
|
<head>
|
36
50
|
|
37
|
-
|
51
|
+
<meta charset="UTF-8">
|
38
52
|
|
39
|
-
|
53
|
+
<meta name="viewport" content="width=device-width">
|
40
54
|
|
41
|
-
|
55
|
+
<title>顧客登録</title>
|
42
56
|
|
43
|
-
|
57
|
+
<link rel="stylesheet" href="ser_style.css">
|
44
|
-
|
45
|
-
|
46
58
|
|
47
59
|
</head>
|
48
60
|
|
@@ -50,149 +62,63 @@
|
|
50
62
|
|
51
63
|
<div class="content">
|
52
64
|
|
65
|
+
<h1>以下の情報を登録しますが、よろしいでしょうか?</h1>
|
53
66
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<script type="text/javascript">
|
58
|
-
|
59
|
-
function formCheck(){
|
60
|
-
|
61
|
-
var flag = 0;
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
if( document . form1 . C_num . value == "" ){
|
68
|
-
|
69
|
-
flag = 1;
|
70
|
-
|
71
|
-
document . getElementById( 'C_num' ) . style . display = "block";
|
72
|
-
|
73
|
-
}else{
|
74
|
-
|
75
|
-
document . getElementById( 'C_num' ) . style . display = "none";
|
76
|
-
|
77
|
-
}
|
78
|
-
|
79
|
-
if( document . form1 . C_name . value == "" ){
|
80
|
-
|
81
|
-
flag = 1;
|
82
|
-
|
83
|
-
document . getElementById( 'C_name' ) . style . display = "block";
|
84
|
-
|
85
|
-
}else{
|
86
|
-
|
87
|
-
document . getElementById( 'C_name' ) . style . display = "none";
|
88
|
-
|
89
|
-
}
|
90
|
-
|
91
|
-
if( document . form1 . C_phon . value == "" ){
|
92
|
-
|
93
|
-
flag = 1;
|
94
|
-
|
95
|
-
document . getElementById( 'C_phon' ) . style . display = "block";
|
96
|
-
|
97
|
-
}else{
|
98
|
-
|
99
|
-
document . getElementById( 'C_phon' ) . style . display = "none";
|
100
|
-
|
101
|
-
}
|
102
|
-
|
103
|
-
if( document . form1 . C_sa . value == "" ){
|
104
|
-
|
105
|
-
flag = 1;
|
106
|
-
|
107
|
-
document . getElementById( 'C_sa' ) . style . display = "block";
|
108
|
-
|
109
|
-
}else{
|
110
|
-
|
111
|
-
document . getElementById( 'C_sa' ) . style . display = "none";
|
112
|
-
|
113
|
-
}
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
if( flag ){
|
118
|
-
|
119
|
-
window . alert( '項目は全て入力して下さい。' );
|
120
|
-
|
121
|
-
return false;
|
122
|
-
|
123
|
-
}else{
|
124
|
-
|
125
|
-
return true;
|
126
|
-
|
127
|
-
}
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
}
|
132
|
-
|
133
|
-
</script>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
</form>
|
138
|
-
|
139
|
-
<h1>顧客登録</h1>
|
140
|
-
|
141
|
-
<form action="c_regi_
|
67
|
+
<form action="c_regi_ans.php" method="get">
|
142
68
|
|
143
69
|
<div class="control">
|
144
70
|
|
145
|
-
<label for="C_num">顧客番号
|
71
|
+
<label for="C_num">顧客番号</label>
|
146
72
|
|
147
|
-
<p id="C_num" style="display: none; color: red;"> 【入力して下さい】</p>
|
148
|
-
|
149
|
-
<input id="C_num" type="number"
|
73
|
+
<input readonly id="C_num" type="number" name="C_num" value="<?php print($C_num);?>">
|
150
74
|
|
151
75
|
</div>
|
152
76
|
|
153
77
|
<div class="control">
|
154
78
|
|
155
|
-
<label for="C_name">顧客名
|
79
|
+
<label for="C_name">顧客名</label>
|
156
80
|
|
157
|
-
<p id="C_name" style="display: none; color: red;"> 【入力して下さい】</p>
|
158
|
-
|
159
|
-
<input
|
81
|
+
<input readonly id="C_name" type="text" name="C_name" value="<?php print($C_name);?>">
|
160
82
|
|
161
83
|
</div>
|
162
84
|
|
163
85
|
<div class="control">
|
164
86
|
|
165
|
-
<label for="C_phon">顧客電話番号
|
87
|
+
<label for="C_phon">顧客電話番号</label>
|
166
88
|
|
167
|
-
<p id="C_phon" style="display: none; color: red;"> 【入力して下さい】</p>
|
168
|
-
|
169
|
-
<input
|
89
|
+
<input readonly id="C_phon" type="tel" name="C_phon" value="<?php print($C_phon);?>">
|
170
90
|
|
171
91
|
</div>
|
172
92
|
|
173
93
|
<div class="control">
|
174
94
|
|
175
|
-
<label for="C_sa">顧客住所<
|
95
|
+
<label for="C_sa">顧客住所</label>
|
176
96
|
|
177
|
-
<p id="C_sa" style="display: none; color: red;"> 【入力して下さい】</p>
|
178
|
-
|
179
|
-
<input id="C_sa" type="text" name="C_sa" value=
|
97
|
+
<input readonly id="C_sa" type="text" name="C_sa" value='<?php print($C_sa);?>'>
|
180
98
|
|
181
99
|
</div>
|
182
100
|
|
183
101
|
<div class="control">
|
184
102
|
|
185
|
-
<input type="submit" value="
|
103
|
+
<input type="submit" value="確定">
|
186
104
|
|
187
105
|
</div>
|
188
106
|
|
189
107
|
</form>
|
190
108
|
|
191
|
-
<form action="
|
109
|
+
<form action="c_regi.php" method="get">
|
110
|
+
|
111
|
+
<input type="hidden" name="C_name" value="<?php print($C_name); ?>">
|
112
|
+
|
113
|
+
<input type="hidden" name="C_num" value="<?php print($C_num); ?>">
|
114
|
+
|
115
|
+
<input type="hidden" name="C_phon" value="<?php print($C_phon); ?>">
|
116
|
+
|
117
|
+
<input type="hidden" name="C_sa" value="<?php print($C_sa); ?>">
|
192
118
|
|
193
119
|
<div class="control">
|
194
120
|
|
195
|
-
<input type="submit" value="
|
121
|
+
<input type="submit" value="戻る">
|
196
122
|
|
197
123
|
</div>
|
198
124
|
|
@@ -203,6 +129,8 @@
|
|
203
129
|
</body>
|
204
130
|
|
205
131
|
</html>
|
132
|
+
|
133
|
+
|
206
134
|
|
207
135
|
```
|
208
136
|
|