Hallo
Ich habe heute versucht in meine seite (ist eine .php seite) ein html kontaktformular einzubauen. das kontaktformular habe ich von fueralles.de
hier ist der code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Template Design by TheWebhub.com | http://www.thewebhub.com | Released for free under a Creative Commons Attribution-Share Alike 3.0 Philippines -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Willkommen auf der Homepage von Pascal Nasahl</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="header">
<h1>hex</h1>
</div>
<div id="menu">
<ul>
<?php
$datei = "menu.txt"; // Name der Datei
$array = file($datei); // Datei in ein Array einlesen
foreach ($array as $element) {
// Die Variablen ($name, $link) aus der Variablen ($element) holen
list($name, $link ) = explode(";", $element);
echo "<li><a href=\"$link.php\">$name</a></li>";
}
?>
</ul>
</div>
<div id="content-wrap" style="width: 899px">
<div id="content">
<div id="columnA">
<h2>Über Mich</h2>
<div class="content bg1">
<form name="kontakt" method="post" action="http://www.fueralles.de/kontakt/mailer.php" OnSubmit="return check();">
<input type="hidden" name="id" value="53937">
<input type="hidden" name="erforderlich" value="NAME,EMAIL,NACHRICHT,BETREFF">
<input type="hidden" name="fehler" value="http://www.fueralles.de/kontakt/error.htm">
<input type="hidden" name="weiterleitung" value="http://www.fueralles.de/kontakt/danke.htm">
<input type="hidden" name="sendsubject" value="Kontaktformular">
<input type="hidden" name="autoantwort" value="false">
<table class="kf_table" border="0" cellpadding="2" cellspacing="0">
<tr><td> </td><td>
<b>Kontaktformular</b>
</td></tr>
<tr><td align="right">
* Name:
</td><td>
<input class="kf_textfeld" type="text" name="NAME" size="20">
</td></tr>
<tr><td align="right">
Ort:
</td><td>
<input class="kf_textfeld" type="text" name="ORT" size="20">
</td></tr>
<tr><td align="right">
* E-Mail:
</td><td>
<input class="kf_textfeld" type="text" name="EMAIL" size="20">
</td></tr>
<tr><td align="right">
* Betreff:
</td><td>
<input class="kf_textfeld" type="text" name="BETREFF" size="20">
</td></tr>
<tr><td align="right" valign="top">
* Nachricht:
</td><td>
<textarea class="kf_textarea" rows="6" name="NACHRICHT" cols="20"></textarea>
</td></tr>
<tr><td align="right">
</td><td>
<input class="kf_button" type="submit" value="Abschicken"> <input class="kf_button" type="reset" value="Löschen" name="B1">
</td></tr>
<tr><td>
</td><td>
* Notwendige Angaben
</td></tr>
<tr><td>
</td><td>
</td></tr>
<tr><td>
</td><td>
<a class="kf_link" target="_blank" href="http://www.fueralles.de/kostenloses-Kontaktformular.html">
<font size="1">Kontaktformular</font></a><a class="kf_link" target="_blank" href="http://www.fueralles.de"><font size="1">-Service</font></a>
</td></tr>
</table>
</form>
</div>
</div>
<div id="columnB">
<h2>Updates</h2>
<?php
$datei = "updates.txt"; // Name der Datei
$array = file($datei); // Datei in ein Array einlesen
foreach ($array as $element) {
// Die Variablen ($name, $link) aus der Variablen ($element) holen
list($name, $link ) = explode(";", $element);
echo "<li><a href=\"$link.php\">$name</a></li>";
}
?>
</div>
<div style="clear: both;"></div>
</div>
</div>
<div id="footer" style="width: 899px">
<p class="copyright">Copyright © 2006 Sitename.com. Template Designed by <a href="http://www.thewebhub.com/">
TheWebHub.com</a></p>
</div>
</body>
</html>
doch wenn ich es testen will, kommt immer diese meldung:
Warning: Unknown(/www/htdocs/ncoixuwj/kontakt/mailer.php): failed to open stream: Permission denied in Unknown on line 0
Warning: Unknown(/www/htdocs/ncoixuwj/kontakt/mailer.php): failed to open stream: Permission denied in Unknown on line 0
Warning: (null)() [function.include]: Failed opening ‘/www/htdocs/ncoixuwj/kontakt/mailer.php’ for inclusion (include_path=’.:/usr/share/php:…’) in Unknown on line 0
wisst ihr woran das liegen kann?
ein kontaktformular mithilfe von php hab ich auch schon versucht, aber hat nicht geklappt
lg