salut, débutant en PHP, j'ai crée un formulaire trilingue français-anglais- allemand qui fonctionnait encore hier en local sous MAc avec le lanceur MAMP. Aujourd'hui j'ai l'erreur suivante:

Not Found
The requested URL /method= was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

je ne trouve pas la solution à ce problème.

Mon éditeur lors du debogage n'indique aucune erreur.


Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?
	//mit $_REQUEST['sent']==1 wird getestet,
	//ob das Formular abgeschickt wurde
	if ($_REQUEST['sent']==1)
	{
	$anrede=trim($_REQUEST["anrede"]);
	$name=trim($_REQUEST["name"]);
	$telefon=trim($_REQUEST["telefon"]);
	$mail=trim($_REQUEST["mail"]);
	$date=trim($_REQUEST["date"]);
	$uhr=trim($_REQUEST["uhr"]);
	$thema=trim($_REQUEST["thema"]);
	}
 
	if (!empty($anrede) and !empty($name) and !empty($mail) and !empty($telefon)and !empty($thema) and !empty($uhr))
	{	
		echo '<br>Ihr Name ist: '.$anrede.' '.$name;
		echo '<br>Ihre Telefonnummer ist: '.$telefon;
		echo '<br>Ihre E-Mail Adresse ist: '.$mail;
		echo '<br>Ihr Thema ist: '.$thema;
		echo '<br>Wir sollen anrufen um: '.$uhr;
		$msg = "<b>Absender</b>:\t$anrede\t$name\n<br>";
		$msg .= "<b>Telefon</b>:\t$telefon\n<br>";
		$msg .= "<b>Datum</b>:\t$date\n<br>";
		$msg .= "<b>E-Mail</b>:\t$mail\n<br>";
		$msg .= "<b>Thema</b>:\t$thema\n\<br>";
		$msg .= "<b>Uhr</b>:\t$uhr\n<br>";
 
			if ((!strpos($mail,'@') AND (!strpos($mail,'.'))))
			{
				echo ("<br><br>Ihre Emailadresse ist nicht korrekt geschrieben");
				echo "<br><a href=\"form.php\"><B><font color=\"#993366\">Klicken Sie bitte hier an oder druecken Sie auf der Ruecktaste Ihres Browsers um neu zu starten </font></B></a>";
				$fehler=true;
			}
 
		$empfanger = "midiweb@gmx.de";
		$subject = "Ihre Internetseite. Neue Nachrichte";
		$mailheaders = "From: neue Nachrichte von Ihrer Internetseite<> \r\n";
		$mailheaders = "MIME-version: 1.0\r\n";
		$mailheaders .= "Content-type: text/html; charset=iso-8859-1\r\n";
		$mailheaders .= "Reply-To: $mail\n\n";
		$daten=$name.$mail.$thema;
		mail($empfanger, $subject, $msg, $mailheaders);
		echo "<P align=left>";
			if (!$fehler)
			{
				echo "<b>Danke fuer Ihre Nachrichte. Ihre Daten wurden uebermittelt!<b/><br>";
				echo "<br><a href=\"form.php\"><B><font color=\"#993366\">Klicken Sie bitte hier um neu zu starten an</font></B></a>";
				//unset ($_REQUEST['sent']);
			}
	}
		elseif ($_REQUEST['sent']==1)
		{
			echo '<br><b>bitte fuellen Sie alle Felder aus! Danke</b>';
			echo "<br><br><a href=\"form.php\"><B><font color=\"#993366\">Klicken Sie bitte hier an oder druecken Sie auf der Ruecktaste Ihres Browsers um neu zu starten</font></B></a>";
		}
 
	if (!$_REQUEST['sent']) {
	?>
	<form id="form1" name="form1" action="<?echo $PHP_SELF?> method="post">
	<input type="hidden" name="sent" value="1">
	<table width="573">
	<tr >
	  <td colspan="2"><img src="bilder/formular-bild.jpg" align="left" hspace="5" vspace="3" alt="formular" />
	    <p class="gras"><u>Kontaktformular:</u></p>
		<p class="Style1"><span class="style1">R&uuml;ckrufservice<br />
	  	Wir rufen Sie gerne zur&uuml;ck </span>
		<p class="Style1"><span class="style1">Um Ihnen eine schnelle Terminvereinabarung zu erm&ouml;glichen, haben wir f&uuml;r Sie einen
		  R&uuml;ckrufservice eingerichtet. <br />
		  </span><span class="style1">Schicken Sie einfach untenstehendes Formular an uns, in dem Sie bestimmen, wann wir Sie zu welchem Thema zur&uuml;ckrufen sollen.<br />
		    </span><br />
 
	</td>
	</tr>
	<tr>
	    <td height="30" class="style1"><strong>Anrede: </strong></td>
	    <td width="194" class="style1">
	      <select name="anrede" >
	        <option>Frau</option>
	        <option>Herr</option>
	        <option>Firma</option>
	        </select></td>
	  </tr>
	  <tr>
	    <td class="style1"><strong>Vorname, Name: </strong></td>
	    <td class="style1">
	      <input name="name" type="text" size="35"  value="<? echo $name;?>"/></td>
	  </tr>
	  <tr>
	    <td class="style1"><strong>Telefon: </strong></td>
	    <td class="style1">
	      <input name="telefon" type="text" size="35" value="<? echo $telefon;?>"/></td>
	  </tr>
	  <tr>
	    <td class="style1"><strong>E-Mail: </strong></td>
	    <td class="style1">
	      <input name="mail" type="text" size="35" value="<? echo $mail;?>" /></td>
	  </tr>
	  <tr>
	    <td class="style1"><strong>Datum:</strong></td>
	    <td class="style1">
	      <input  name="date" type="text" size="12" value="<? echo $date;?>"   />(TT.MM.JJ)</td>
	  </tr>
	  <tr>
	    <td height="31" class="style1"><strong>Um wieviel Uhr sollen wir anrufen?: </strong></td>
	    <td class="style1">
	      <select  size="egal" name="uhr">
		    <option value="egal">egal</option>
	        <option value="10:00-11:00">10:00-11:00</option>
	        <option value="11:00-12:00">11:00-12:00</option>
			<option value="12:00-13:00">12:00-13:00</option>
			<option value="13:00-14:00">13:00-14:00</option>
			<option value="14:00-15:00">14:00-15:00</option>
			<option value="15:00-16:00">15:00-16:00</option>
			<option value="16:00-17:00">16:00-17:00</option>
			<option value="17:00-18:00">17:00-18:00</option>
			<option value="18:00-19:00">18:00-19:00</option>
			<option value="19:00-20:00">19:00-20:00</option>
	      </select>    </td>
	  </tr>
	  <tr>
	    <td class="style1"><strong>Thema:</strong></td>
	    <td class="style1">
	      <input type="text" name="thema" size="35" value="<? echo $thema;?>"/>    </td>
	  </tr>
	  <tr>
	    <td>&nbsp;</td>
	    <td class="style1">
	      <input type="submit" name="submit" value="abschicken" /></td>
 
		</tr>
	</table>
	</form>
	<?}?>
Qui peut me conseiller? Merci