質問編集履歴
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
サーバ内部で障害が発生し、 リクエストに応えることができませんでした。 サーバが過負荷であるか、 CGI スクリプトにエラーがあります。
|
6
6
|
サーバーの障害と思われる場合は、ウェブ管理者までご連絡ください。
|
7
7
|
Error 500'
|
8
|
-
|
8
|
+
```php
|
9
9
|
URL:http://localhost/sample.php
|
10
10
|
'<?php
|
11
11
|
header("Location : http://localhost/template.php");
|
@@ -32,5 +32,7 @@
|
|
32
32
|
</form>
|
33
33
|
</body>
|
34
34
|
</html>'
|
35
|
+
```
|
35
36
|
|
37
|
+
|
36
38
|
実行時のURLはhttp://localhost/sample.phpとなっています
|
1
URLとコードを追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,13 +1,36 @@
|
|
1
1
|
phpのheader関数を使用するとエラーが起こってしまいます。いろいろ試しましたが解決できませんでした。
|
2
2
|
よろしくお願いします。
|
3
3
|
|
4
|
-
Server error!
|
4
|
+
'Server error!
|
5
5
|
サーバ内部で障害が発生し、 リクエストに応えることができませんでした。 サーバが過負荷であるか、 CGI スクリプトにエラーがあります。
|
6
6
|
サーバーの障害と思われる場合は、ウェブ管理者までご連絡ください。
|
7
|
-
Error 500
|
7
|
+
Error 500'
|
8
8
|
|
9
|
-
|
9
|
+
URL:http://localhost/sample.php
|
10
|
-
<?php
|
10
|
+
'<?php
|
11
11
|
header("Location : http://localhost/template.php");
|
12
12
|
exit;
|
13
|
-
?>
|
13
|
+
?>'
|
14
|
+
|
15
|
+
URL:http://localhost/template.php
|
16
|
+
'<!DOCTYPE html>
|
17
|
+
<html>
|
18
|
+
<head>
|
19
|
+
<title>会員登録画面</title>
|
20
|
+
<meta charset="UTF-8">
|
21
|
+
</head>
|
22
|
+
<body>
|
23
|
+
<h2>会員登録フォーム</h2>
|
24
|
+
<form action="confirm.php" method="post">
|
25
|
+
姓:<input type="text" name="l_name" value="" /><br/>
|
26
|
+
名:<input type="text" name="f_name" value="" /><br/>
|
27
|
+
パスワード:<input type="text" name="password" value="" /><br/>
|
28
|
+
生年月日:<input type="text" name="birth_date" value="" /><br/>
|
29
|
+
出身県:<input type="text" name="prefecture" value="" /><br/>
|
30
|
+
年齢:<input type="text" name="age" value="" /><br/>
|
31
|
+
<input type="submit" value="送 信" /><br/>
|
32
|
+
</form>
|
33
|
+
</body>
|
34
|
+
</html>'
|
35
|
+
|
36
|
+
実行時のURLはhttp://localhost/sample.phpとなっています
|