Ceres82: nach FORM SUBMIT an php, funktioniert Startseite nicht mehr

Beitrag lesen

Ich füge mal meinen Code an um das ganze zu veranschaulichen:

startseite.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"  
   "http://www.w3.org/TR/html4/frameset.dtd">  
  
  
<html>  
  
<head>  
  
<body bgcolor="white" link="0066FF" onload="ausgabebereich.location.href='abgleich.php' ">  
  
  
<!-- Navigationsmenü -->  
<div id="div_navi" name="navigation">  
	<table><td id="navi_ueberschrift"> Navigation </td></table>  
  
	<table id="tabelle">  
		<tbody>  
			<a href="form.php" target="ausgabebereich" ><tr><td style="text-decoration:none; color:white" > Menü 1 </td></tr></a>  
			<a href="xxx.php" target="ausgabebereich" ><tr><td style="text-decoration:none; color:white" > Menü 2 </td></tr></a>  
			<a href="xxx.php" target="ausgabebereich" ><tr><td style="text-decoration:none; color:white" > Menü 3 </td></tr></a>  
		</tbody>  
	</table>  
	  
	<table id="tabelle2">  
		<tbody>  
			<a href="del_sperr_datei.php" target="ausgabebereich" ><tr><td style="text-decoration:none; color:white" >Sonstiges</tr></td></a>  
		</tbody>  
	</table>  
	  
</div>  
  
<!-- Ausgabebereich -->  
<iframe id="ausgabebereich" name="ausgabebereich" class="ausgabebereich" >  
  
</iframe>  
  
</body>  
</html>

form.php

<form method="post" action="auswertung.php"  name="abschicken" >	  
  
	<!-- Welche Art Nachricht soll versendet werden	-->  
	<a href="#" ><div class="box1_msg" onclick="showonlyone('popup_msg');" style="text-decoration:none; color:white">MSG-Ausgabe wählen</div></a>  
	<div class="versteckt" id="popup_msg" style="z-index:1; width: 190px; height:118px; overflow:hidden; position:absolute; top:78px; left:265px; background:white; border:0px solid black;">	  
		<a href="#" onClick="document.getElementById('popup_msg').style.display='none';" style="text-decoration:none; color:black; font-weight:bold" id="schließen1"> x </a>  
		<div  class="message" style="width: 190px; position:absolute; top:0px; left:0px; font-family: Arial; font-size: 18px; color: #000000; line-height: 20px;">		  
			<table>  
				<colgroup>  
					<col width="30">  
					<col width="170">  
				</colgroup>  
				<tbody>  
					<br>  
					<tr><td><input type="checkbox" name="msg" value="Störungs - MSG"></td><td>Störungs - MSG</td></tr>  
					<tr><td><input type="checkbox" name="msg" value="Good - MSG"></td><td>Good - MSG</td></tr>  
					<tr><td><input type="checkbox" name="msg" value="Info - MSG"></td><td>Info - MSG</td></tr>  
					<tr><td><input type="checkbox" name="msg" value="Übergabe - MSG"></td><td>Übergabe - MSG</td></tr>  
				</tbody>  
			</table>  
		</div>  
	</div>  
	  
	<!-- Welche Anwendung(en) betrifft es	-->  
	<a href="#" ><div class="box1_anw" onclick="showonlyone('popup_anw');" style="text-decoration:none; color:white">Anwendung wählen</div></a>  
	<div class="versteckt" id="popup_anw" style="z-index:1; width: 180px; height:117px;; overflow:hidden; position:absolute; top:112px; left:265px; background:white; border:0px solid black; ">	  
		<a href="#" onClick="document.getElementById('popup_anw').style.display='none';" style="text-decoration:none; color:black; font-weight:bold" id="schließen2"> x </a>  
		<div style="width: 170px; position:absolute; top:0px; left:0px; font-family: Arial; font-size: 18px; color: #000000; line-height: 20px; ">	  
			<table>  
				<colgroup>  
					<col width="30">  
					<col width="170">  
				</colgroup>  
				<tbody>  
				<br>  
					<tr><td><a href="#" onclick='checkbox()'>alle</a></td></tr>  
					<tr><td><input type="checkbox" name="anw[]" onclick="menu_ausblenden()" value="Anwendung 1"></td><td>Anwendung 1</td></tr>  
					<tr><td><input type="checkbox" name="anw[]" onclick="menu_ausblenden()" value="Anwendung 2"></td><td>Anwendung 2</td></tr>  
					<tr><td><input type="checkbox" name="anw[]" onclick="menu_ausblenden()" value="Anwendung 3"></td><td>Anwendung 3</td></tr>  
				</tbody>  
			</table>  
		</div>  
	</div>  
	<input type="submit" id="senden" name="senden" value="Mail abschicken" onclick="return prüfung()" >  
</form>
Auswertung.php  
  
<?php  
  
	//**** Daten aus Formular empfangen ****  
	$msg= $_POST["msg"];  
	$anw= $_POST["anw"];  
	  
  
	echo 'E-Mail wurde verschickt!';  
		  
		//**** Hier wird die Email-Nachricht ****  
		ob_start();  
		include("mail.php");  
		$message = ob_get_contents();  
		ob_end_flush();							// Ausgabe am Bildschirm  
		//ob_end_clean();  
  
		  
		$to      = 'xxxx@test.de';  
		$header  = "MIME-Version: 1.0\r\n";  
		$header .= "Content-type: text/html; charset=iso-8859-1\r\n";  
  
		$subject = 'Test Email über PHP versendet';  
  
		  
		//**** Email verschicken ****  
		mail($to, $subject, $message, $header);
~~~?>  
  
Mail.php  
  
~~~html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"  
   "http://www.w3.org/TR/html4/frameset.dtd">  
  
  
<html>  
<head>  
<style type="text/css">  
	body {font-family:arial }  
	h1 {font-size:30px; font-weight:bold; color:black; background-color:#; }  
	h2 {font-weight:bold; font-weight:bold; text-decoration: underline;}  
	  
	p {font-size:16px; color:black;}  
  
</style>  
  
  
<body>  
	<h1><font color='red'>Störungsmeldung für <?php echo "$anw[0], $anw[1] und $anw[2]"; ?> </font></h1>  
  
    <p><br>Sehr geehrte Damen und Herren, <br><br>  
  
			für folgende LOHN-Produkte ==> <?php echo "$anw[0], $anw[1] und $anw[2]"; ?> <br><br>  
  
			ist derzeit eine Störung / Verzögerung aufgetreten!  
    <table>  
		<colgroup>  
		<col width="180">  
		<col width="230">  
		</colgroup>  
			  
			<tr><td style="background-color:#D8D8D8">Ausfallursache:</td> <td style="background-color:#F2F2F2"> irgendein text </td></tr>  
  
			<tr><td style="background-color:#D8D8D8">Voraussichtliche Dauer:</td> <td style="background-color:#F2F2F2"> blab la bla </td></tr>  
  
	</table>  
  
            Bitte geben Sie diese Information weiter.  <br><br><br>  
  
			Mit freundlichen Grüßen    <br><br>  
</p>  
  
</body>  
</html>