php formmail fehler
Anfänger
- php
0 Philipp Grashoff0 Vinzenz0 Thomas Luethi0 Vinzenz
Warum bekomme ich immer folgenden fehler:
Parse error: parse error, unexpected $ in /home/www/htdocs/example.org/cs-clips4u/mailform.php on line 94
---------------------------------------------
hier der quelltext:
<html>
<head>
</head>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
if (!empty($HTTP_POST_VARS)) {extract($HTTP_POST_VARS);}
$remote = getenv("REMOTE_ADDR");
$date = date("m.d.Y H:i:s");
if ($remote == "") $ip = "<i> no ip </i>";
else $ip = getHostByAddr($remote);
if (!isset($ausgefllt)){
?>
<p align="center">
<form name="form1" method="post" action="mailform.php">
<table width="319" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="55" align="right" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Name</font></td>
<td width="250">
<input style="BACKGROUND-COLOR: #3A4968" style="color: #FFFFFF; font-family: Tahoma; name="Name" type="text" class="inputtext" size="40" onfocus="style.background='#660000';" onblur="style.background='#3A4968';">
</td>
</tr>
<tr>
<td align="right" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">E-Mail</font></td>
<td>
<input style="BACKGROUND-COLOR: #3A4968" style="color: #FFFFFF; font-family: Tahoma; name="Email" type="text" class="inputtext" id="Email" size="40" onfocus="style.background='#660000';" onblur="style.background='#3A4968';">
</td>
</tr>
<tr>
<td align="right" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Telefon</font></td>
<td>
<input style="BACKGROUND-COLOR: #3A4968" style="color: #FFFFFF; font-family: Tahoma; name="Telefon" type="text" class="inputtext" id="Telefon" size="40" onfocus="style.background='#660000';" onblur="style.background='#3A4968';">
</td>
</tr>
<tr>
<td align="right" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Betreff</font></td>
<td>
<input style="BACKGROUND-COLOR: #3A4968" style="color: #FFFFFF; font-family: Tahoma; name="Betreff" type="text" class="inputtext" size="40" onfocus="style.background='#660000';" onblur="style.background='#3A4968';">
</td>
</tr>
<tr>
<td align="right" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Nachricht</font></td>
<td>
<textarea style="BACKGROUND-COLOR: #3A4968" style="color: #FFFFFF; font-family: Tahoma; name="Nachricht" cols="40" rows="8" onfocus="style.background='#660000';" onblur="style.background='#3A4968';"></textarea>
</td>
</tr>
<tr>
<td align="right"><input name="kopie" type="checkbox" id="kopie" value="checkbox"></td>
<td> <font size="2" face="Arial, Helvetica, sans-serif">Mir bitte ein Kopie der Nachricht zusenden</font></td>
</tr>
<tr>
<td> </td>
<td>
<input type="submit" class="inputbutton" value="Absenden">
<input name="ausgefllt" type="hidden" id="ausgefllt" value="1">
</td>
</tr>
</table>
</form></p>
<?php if ($submit) { print "<meta http-equiv="refresh" content="1; URL=index.php?action=send">"; } ?>
</td>
</tr>
</table>
</body>
</html>
wäre super, wenn jemand den fehler findet...
danke
Hi,
if (!isset($ausgefllt)){
Diese geschwungene Klammer wird nicht mehr geschlossen, verursacht einen Fehler.
mfg
Philipp
Hallo Anfänger
Parse error: parse error, unexpected $ in /home/www/htdocs/example.org/cs-clips4u/mailform.php on line 94
Bitte, warum teilst Du uns nicht mit, was Zeile 94 in Deinem Code ist?
Ich schätze </html> *g*
if (!isset($ausgefllt)){
aber schau mal nach, wo die schließende Klammer dazu ist.
Ich hab' keine gefunden - und mein Editor sucht sowas
Für den Riesenblock HTML nutze doch include() oder ein heredoc
http://de2.php.net/manual/de/function.include.php
http://de3.php.net/manual/de/language.types.string.php#language.types.string.syntax.heredoc
Freundliche Grüsse,
Vinzenz
Hallo,
Für den Riesenblock HTML nutze doch include() oder ein heredoc
Warum sollte er? Ich finde den Wechsel in den HTML-Modus
hier sehr angebracht.
Wenn es sich um reinen HTML-Code ohne PHP-Befehle/-Variablen handelt,
reicht uebrigens - wenn schon - auch readfile() statt include().
mfg, Thomas
Hallo Thomas Luethi
Warum sollte er? Ich finde den Wechsel in den HTML-Modus
hier sehr angebracht.
Dann wäre ihm die schließende Klammer sicherlich selbst aufgefallen.
Wenn es sich um reinen HTML-Code ohne PHP-Befehle/-Variablen handelt,
reicht uebrigens - wenn schon - auch readfile() statt include().
Ja klar, da hast Du völlig Recht.
Freundliche Grüsse,
Vinzenz