Informacion del Formular no salen
Publicado por me45632 (56 intervenciones) el 22/09/2018 11:55:27
Aupa , decir que soy bastante nuevo con PHP....
mi problema... , tengo dos fichero en php .
Uno prove_contakt2.php
El segundo prove.php
El problema es , que cuando relleno los datos , le doy al submit , seme habre una ventana que dice ,
The requested URL /var/www/html/test.php was not found on this server.
Me podria ayudar algien con este problema .. , llevo una semana intentando solucionar este problema , pero todavia no lo he consegido solucionar..
mi problema... , tengo dos fichero en php .
Uno prove_contakt2.php
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
<?php ### messages.php ### utf8 ### äöüÄÖÜ ###
header('Content-Type: text/html; Charset=utf-8');
mb_internal_encoding('UTF-8');
date_default_timezone_set('Europe/Berlin');
?>
<!doctype html/>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Prove</title>
<style>
</style>
</head>
<body>
<form action="/var/www/html/test.php" method="post" name="post">
<label for="email">E-Mail</label>
<input type="email" id="email" name="email" />
<label for="name">Name</label>
<input id="name" name="name" />
<br>
<label> Message: <br><textarea cols="45" rows="6" name="message"></textarea><br></label>
<p>
<button type="submit" name="post" value="POST COMMENT">POST COMMENT</button>
</p>
<br>
</form>
</body>
</html>
El segundo prove.php
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
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<?php
error_reporting(-1);
ini_set('display_errors', true);
include "http://localhost/prove_contakt2.php";
echo "<h2>Comments:</h2>";
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['message'])) {
echo "<br><b><h3>*** Please enter all required fields ***</h3></b>";
}
else
{
$name = filter_input( INPUT_POST, 'name', FILTER_SANITIZE_STRING);
$email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_STRING);
$message = filter_input(INPUT_POST, 'message', FILTER_SANITIZE_STRING);
echo "<br>"
. "<b>From: </b>" . htmlspecialchars( $name )
. "<b> at :</b>" . htmlspecialchars( $email)
. "<br><br>" . htmlspecialchars( $message )
. "<br><hr>";
?>
</body>
</html>
El problema es , que cuando relleno los datos , le doy al submit , seme habre una ventana que dice ,
The requested URL /var/www/html/test.php was not found on this server.
Me podria ayudar algien con este problema .. , llevo una semana intentando solucionar este problema , pero todavia no lo he consegido solucionar..
Valora esta pregunta


0