Hallo zusammen
Habe nochmals eine Frage. Ich habe ein php Formular erstellt, das funktioniert
Nun möchte ich, dass beim Versenden automatisch die Seite ../bestätigung.htm aufgerufen wird.
Wie kriege ich das hin. Hab in selfhtml schon rumgeschaut aber nichts gefunden, was mir weiterhelfen könnte.
Kann mir da jemand helfen ???
Beiliegend noch mein php Formular.
Vielen Dank für eure Hilfe
cle
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="de">
<title>Kontakt</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<body><?php
$body="
<p>";
if ($_POST[ToMail]=="") {
echo("
<script language=javascript>
function check_form()
{
var error,i,set,str,ele,elenam,zeichen;
}
</script>
<p> </p>
<div align='center'>
<center>
<table border='0' cellspacing='0' width='800'>
<tr>
<td>
<div align='center'>
<table border='0' cellspacing='0' width='800' height='584'>
<tr>
<td colspan='2' width='792' bgcolor='#FF0000' bordercolor='#FF0000' height='74'>
<p align='center'> </p>
<h1 align='center'>Banner</h1>
</td>
</tr>
<tr>
<td rowspan='2' width='180' bgcolor='#FF00FF' bordercolor='#FF00FF' height='402'><!--webbot bot='Include'
U-Include='Inhalt vertikal.htm' TAG='BODY' startspan -->
<div align='left'>
<table border='0' width='180'>
<tr>
<td><p> </p>
<p><a href='index.htm'>Link1</a></p>
<p><a href='Link2/Link2A.htm'>Link2</a></p>
<p><a href='Link3.htm'>Link3</a></p>
<p><a href='Kontakt.htm'>Kontakt</a></p>
<p> </td>
</tr>
</table>
</div>
<!--webbot bot='Include' endspan i-checksum='54350' -->
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </td>
<td width='620' height='57'></td>
</tr>
<tr>
<td width='620' height='339'>
<form action=Kontakt.php method=post>
<input type=hidden name=ToMail [email protected]>
<div align='center'>
<center>
<table border='0' width='510'>
<tr>
<td>
<h1 align='center'>Kontakt</h1>
</td>
</tr>
<tr>
<td>
<div align='center'>
<table border='0' width='510'>
<tr>
<td>
<p align='left'>
<tr>
<td width='33%'>Name, Vorname</td>
<td><input type='text' name='T1' size='42'></td>
</tr>
<tr>
<td>Strasse </td>
<td><b><input type='text' name='T2' size='42'></b></td>
</tr>
<tr>
<td>PLZ,
Ort</td>
<td><b><input type='text' name='T3' size='42'></b></td>
</tr>
<tr>
<td>Telefon</td>
<td><b><input type='text' name='T4' size='42'></b></td>
</tr>
<tr>
<td>E-Mail Adresse </td>
<td><b><input type='text' name='T5' size='42'></b></td>
</tr>
</table>
</div>
<p align='left'><font size='3'>Mitteilung:</font></p>
<p align='left'><textarea rows='12' name='S1' cols='53'></textarea></p>
<p align='left'><input type='submit' value='Abschicken' name='B1'><input type='reset' value='Zurücksetzen' name='B2'></p>
</td>
</tr>
</table>
</center>
</div>
<p>
");
} else
{
$message="";
foreach($_POST as $key => $value)
{
if (is_array($_POST[$key]))
{
$merk=$key;
$liste="";
foreach($_POST[$key] as $key => $value)
{
$liste="$liste\n$value";
}
$message="$message\n\n$merk\n$liste";
} else
{
if ($key == "ToMail") {$email=$value;}
if ($key == "FormularTitel") {
$titel=str_replace("#", " ", $value);
}
$message="$message\n\n$key\n$value";
}
}
echo($body);
mail($email,$titel,$message,"From: <$email>");
echo("</p>
<p> </p>
<p> </p>
<p> </p>
<h1 align='center'>Vielen Dank für ihre Mitteilung!</h1>
<p align='center'><img border='0' src='../images/clarobackground.gif' width='180' height='400'></p>");
}
?>
<p> </p>
<p> </p>
<p> </td>
</tr>
<tr>
<td width='800' colspan='2' bgcolor='#008000' bordercolor='#008000' height='65'><!--webbot bot='Include'
U-Include='copyright.htm' TAG='BODY' startspan -->
<div align='center'>
<center>
<table border='0' width='800'>
<tr>
<td bgcolor='#008000'>
<p align='center'> </p>
<p align='center'><a href='mailto:[email protected]'>[email protected]</a>
Letztes Update: 1.1.2068</td>
</tr>
</table>
</center>
</div>
<!--webbot bot='Include' endspan i-checksum='45961' -->
</td>
</tr>
<tr>
<td width='180' height='19'></td>
<td width='620' height='19'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
cle Gast |