versuche nun seit Wochen, dein (SUPER) Kontaktformular auf meiner Seite (gehostet bei HE) zum Laufen zu bringen.
Wenn ich das Formular (Script) auf einer 'nackten' Seite habe, funktioniert das ganz prima.
Meine Website ist aber mit <iframe> entworfen, so dass das Script irgendwo in den 'Tiefen meiner Seite' aufgerufen wird.
Ach so, sollte noch erwähnen, dass ich nicht wirklich Ahnung von PHP habe - eigentlich gar keine.
Hier der Code auszugsweise:
<?php
// Pfad zum Wurzelverzeichnis
$rootdir="";
require($rootdir . "layout/header.inc.php");
// GammaGroup Kontaktscript
$adresse = "meine-Em@il.de";
$absender = "1";
$head = "Hier Ihre Überschrift
Version 2.7.";
$add = "Stand@rd-Mail.de";
$lengthm = strlen($_POST["send"]["mail"]);
$lengtha = strlen($_POST["send"]["autor"]);
$lengthb = strlen($_POST["send"]["betreff"]);
$lengthn = strlen($_POST["send"]["nachricht"]);
$i = "0";
if ($absender == "0") {
$from = $adresse ; }
else { $from = $_POST["send"]["mail"] ; }
if(isset($_POST["send"]) && is_array($_POST["send"])) {
if(empty($_POST["send"]["autor"])) {
...
// Hier habe ich nichts verändert
if(isset($_POST["send"]) && is_array($_POST["send"])) {
...
// Hier hab ich auch nix geändert
?>
<style type="text/css">
...
</style>
</head><body>
<div id="imprintDiv">...</div>
<div id="contactDiv"><span class="contactHL1">Kontakt:</span>
<form action="<?php echo $PHP_SELF;?>" method="post" target="_self">
<fieldset>
<div class="fehler"><?php echo $fautor ; echo $fbetreff ; echo $fmail ; echo $fnachricht ; echo $flautor ; echo $flbetreff ; echo $flnachricht ; echo $flmail ; echo $fgmail ; echo $fgautor ;?></div>
<label for="autor">Name:</label>
<input name='send[autor]' id="autor" type='text' value="<?php echo $sautor ; ?>" style="" onFocus="this.style.backgroundColor='#444'" onBlur="this.style.backgroundColor=''" />
<label for="mail">Email:</label>
<input name='send[mail]' id="mail" type="text" value="<?php echo $smail ; ?>" style="" onFocus="this.style.backgroundColor='#444'" onBlur="this.style.backgroundColor=''" />
<label for="nachricht">Text:</label>
<textarea name='send[nachricht]' id="nachricht" cols="" rows="9" style="" onFocus="this.style.backgroundColor='#444'" onBlur="this.style.backgroundColor=''"><?php echo $snachricht ;?></textarea>
<label for=""> </label>
<input name="send" type="submit" class="submit" value="Absenden" style="" onmouseover="this.style.color='#00FFFF'" onmouseout="this.style.color=''" />
<input name="Reset" type="reset" class="reset" value="Reset" style="" onmouseover="this.style.color='#00FFFF'" onmouseout="this.style.color=''" />
</fieldset>
</form>
<div class="copy">
© by <a href='http://www.Neandertaler.net'>www.Neandertaler.net</a> 2005
</div>
<p></p>
</div>
</body>
</html>
... und die header.inc.php sieht so aus:
<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ... <link rel=stylesheet type="text/css" href="<?php echo $rootdir ?>styles/doku.css"> <script language="Javascript" src="<?php echo $rootdir ?>scripts/scripts.js"></script> <script type="text/javascript" src="<?php echo $rootdir ?>scripts/lib_basic.js"></script> <script type="text/javascript" src="<?php echo $rootdir ?>scripts/lib_common.js"></script>
Das ganze kann man sich anschauen: www.jc-press.de ; Rubrik: IMPRINT
Wäre toll, wenn es eine Lösung für mein Problem gäbe, ohne dass ich die komplette Website umbauen muss.
Gruss
der Paul














