da stimmt leider etwas immer noch nicht.
jetzt doch mal mehr quelltext.
beim arbeiten gestern hatte ich doch wieder die abfrage aus der Datei genommen und als eigenständige Datei abgespeichert.
hier die Abfrage:
PHP-Code:
<?
// Grundeinstellungen
import_request_variables ( "p" , "post_" );
$fehler = 0;
//$anrede = $HTTP_POST_VARS["anrede"];
$color = array( "telefon" =>"#000000",
"name" =>"#000000",
"strasse" =>"#000066",
"plz" =>"#000066",
"ort" =>"#000066",
"email" =>"#000066",
"fax" =>"#000066" );
// Mailabfragen
if ($senden == 1)
{
if (trim($post_telefon)==""){
$color['telefon'] = "#cc3300";
$fehler++; }
if (trim($post_name)==""){
$color['name'] = "#cc3300";
$fehler++; }
//anschrift
if (trim($post_plz)==""){
$color['plz'] = "#cc3300";
$fehler++; }
elseif (eregi("^[0-9]+",$post_plz) == false){
$color['plz'] = "#cc3300";
$fehler++; }
elseif (strlen($post_plz)<5){
$color['plz'] = "#cc3300";
$fehler++; }
if (trim($post_ort)==""){
$color['ort'] = "#CC0000";
$fehler++; }
if (trim($post_strasse)==""){
$color['strasse'] = "#cc3300";
$fehler++; }
//fax
if (trim($post_fax)==""){
$color['fax'] = "#cc3300";
$fehler++;
}
elseif (eregi("^[0-9]+",$post_fax) == false){
$color['fax'] = "#cc3300";
$fehler++;
}
// check mail
if (trim($post_email)=="")
{
$color['email'] = "#990000";
$fehler++;
}
elseif (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$",$post_email) == false)
{
$color['email'] = "#990000";
$fehler++;
}
//Fehlercheck -> wenn Fehler, dann Textpassagen rot und MSG ausgeben, ansonsten wird preview included
if ($post_senden == 1){
if ($fehler != 0){
include 'landpart1.php';
}
else {
include 'bestaetigung.php';
}}
}
?>
HTML-Code:
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td> <table width="800" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="251" rowspan="4" valign="top"><a id="above" name="above"></a>
<div id="Layer1"><img src="../../images/spargelzeit/eichhaeher.gif" alt="" height="86" width="80" border="0"></div>
<div id="navcontainer">
...
</div>
<img src="../../Images/Allg/Pixel.gif" alt="" height="1" width="200" border="0"></td>
<td colspan="3"><img src="../../images/Gerust/Ger1.gif" alt="" height="32" width="25" border="0"><img src="../../images/Gerust/Ger2.gif" alt="" height="32" width="38" border="0"><img src="../../images/Gerust/Ger4.gif" alt="" height="32" width="8" border="0"><img src="../../images/Gerust/Ger4.gif" alt="" height="32" width="10" border="0"><img src="../../images/Gerust/Ger5.gif" alt="" height="32" width="303" border="0"><img src="../../images/Gerust/Ger6.gif" alt="" height="32" width="8" border="0"><img src="../../images/Gerust/Ger7.gif" alt="" height="32" width="181" border="0"><img src="../../images/Gerust/Ger8.gif" alt="" height="32" width="27" border="0"></td>
</tr>
<tr>
<td height="75" colspan="3" align="left" valign="top"><img src="../../images/Gerust/Ger10.gif" alt="" height="75" width="81" border="0"><img src="../../images/gruppen/gruppe_ueb.gif" alt="" height="75" width="492" border="0"></td>
</tr>
<tr>
<td width="63" valign="top" style="width:63px;"><img src="../../images/Start2/Balken_links.gif" alt="" height="1300" width="38" border="0" style="margin-left:25px;"></td>
<td width="473" valign="top" class="content" style="width:473px;"> <h3>Landpartie 1 </h3>
<h3><img src="../../images/gruppen/landpart1.gif" alt="Beelitzer Spargel - Schlemmen auf dem Lande" height="56" width="283" border="0"></h3>
<p>Unser Angebot in der Beelitzer Spargelsaison <br>
täglich vom 26. April bis 24. Juni</p>
<p><img src="../../images/gruppen/land1.jpg" alt="" height="85" width="459" border="0"></p>
<p> <b>Unser Programmvorschlag:</b> </p>
...
<p><b>Bitte füllen Sie das untenstehende Formular aus.</b></p>
<p><b>Es handelt sich hierbei um ein unverbindliches Angebot. <br>
Nach eingeganger Anfrage werden wir diese umgehend bearbeiten und
Ihnen ein Angebot per Fax übersenden. Eine verbindliche Reservierung
liegt erst mit Überweisung des Gesamtpreises vor. <br>
</b> </p>
<form action="mail.inc.php" method="post" target="_self">
<span style="padding-left: 10px;color:<? if ($post_senden == 1) {echo '#CC0000';} else {echo 'transparent';}?>"><? echo $msg ?></span><a name="form"></a>
<fieldset>
<legend>Kontaktdaten</legend>
<table width="90%" border="0" cellpadding="0" cellspacing="0" class="form">
<tr>
<td width="35%" class="darkgreen"><span style="color:<? echo $color['name']; ?>">Telefon**:</span></td>
<td width="61%"><input name="telefon" type="text" class="searchfield" id="telefon" tabindex="10" <? if ($post_senden == 1) {echo 'style="border: 1px solid '. $color['name'];.'"';} ?> value="<?= $post_telefon ?>"></td>
echo 'style="border: 1px solid '. $color['name'];.'"'</tr>
<tr>
<td class="darkgreen">Name bzw. Firma**:</td>
<td><input name="name" type="text" class="searchfield" id="name" size="24" tabindex="11" value="<?= $post_name ?>"></td>
</tr>
<tr>
<td class="darkgreen">Straße**:</td>
<td><input name="strasse" type="text" class="searchfield" id="strasse" tabindex="12" value="<?= $post_strasse ?>"></td>
</tr>
<tr>
<td class="darkgreen">Plz + Ort**:</td>
<td><input name="plz" type="text" class="searchfield_small" id="plz" tabindex="13" value="<?= $post_plz ?>"><input name="ort" type="text" class="searchfield" id="ort" tabindex="13" value="<?= $post_ort ?>"></td>
</tr>
<tr>
<td class="darkgreen">E-Mail**:</td>
<td><input name="email" type="text" class="searchfield" id="email" tabindex="14" value="<?= $post_email ?>"></td>
</tr>
<tr>
<td class="darkgreen">Fax**:</td>
<td><input name="fax" type="text" class="searchfield" id="fax" tabindex="15" value="<?= $post_fax ?>"></td>
</tr>
<tr>
<td colspan="2" align="right" class="darkgreen">**Pflichtfelder<br>
Die Pflichtangaben erleichtern uns die Kontaktaufnahme und
Zusendung eines Angebotes.<input type="hidden" name="senden" id="senden" value="1"></td>
</tr>
<tr>
<td></td>
<td><input name="sendbutton" type="submit" class="button" value=" » absenden " /></td>
</tr>
</table>
</fieldset>
</form>
<p> </p>
<p><a href="#above" title="zum Seitenanfang"><img id="oben1" src="../../images/Allg/oben1.gif" alt="" name="oben1" height="14" width="73" border="0" style="margin-left:20px;"></a></p></td>
<td align="right" width="67" valign="top"><img src="../../images/Start2/balk_rechts6.gif" alt="" height="1300" width="64" border="0"></td>
</tr>
<tr>
<td colspan="3" valign="top"><img src="../../images/Start2/Gras1.gif" alt="" height="104" width="56" border="0" style="margin-left:25px;"><img src="../../images/Start2/Gras2.gif" alt="" height="104" width="303" border="0"><img src="../../images/Start2/Gras3.gif" alt="" height="104" width="216" border="0"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>