Button zum senden funktioniert nicht

Status
Nicht offen für weitere Antworten.

counteract

Erfahrenes Mitglied
Hallo!

Ich habe ein riesen Problem woran ich schon seit Stunden sitze und keine Lösung finde!

Und zwar funktionieren auf dieser Seite die 2 Buttons nicht! Ich habe die Seite übrigens mit GoLive gemacht!

Warum tut sich bei den Buttons nichts wenn drauf klickt?

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<?php
session_start();

if(isset($_POST['ueberpruefung'])) 
  { 
      $error = array(); 
      $success = true;
      $keys = array('name', 'vorname', 'geburtsdatum', 'familienstand', 'staatsange', 'strasse', 'ort', 'plz', 'email', 'mobil', 'telefon');
      foreach($keys as $key)
      {
          $error[$key] = '';
      }   
               
      if(empty($_POST['name']))
        { 
          $error['name'] = "Bitte einen Namen eingeben! ";
          $success = false;
        } 
      
      if(empty($_POST['vorname']))
        {
          $error['vorname'] = "Bitte ihren Vornamen eingeben! ";
          $success = false;
        } 
     
      if(empty($_POST['geburtsdatum']))
        {
          $error['geburtsdatum'] = "Bitte ihr Geburtsdatum eingeben! ";
          $success = false;
        } 
      
      if(empty($_POST['familienstand']))
        {
          $error['familienstand'] = "Bitte ihren Familienstand eingeben! ";
          $success = false;
        } 
      
      if(empty($_POST['staatsange']))
        {
          $error['staatsange'] = "Bitte ihre Staatsangehörigkeit eingeben! ";
          $success = false;
        } 
      
      if(empty($_POST['strasse']))
        {
          $error['strasse'] = "Bitte die Straße eingeben! ";
          $success = false;
        } 
      
      if(empty($_POST['ort']))
        {
          $error['ort'] = "Bitte den Ort eingeben! ";
          $success = false;
        } 
      
      if(empty($_POST['plz']))
        {
          $error['plz'] = "Bitte die PLZ eingeben! ";
          $success = false;
        } 
      
      if(empty($_POST['email']))
        {
          $error['email'] = "Bitte ihre E-Mail Adresse eingeben! ";
          $success = false;
        } 
  
        if(empty($_POST['mobil']))
        {
          $error['mobil'] = "Bitte ihre Mobilnummer eingeben! ";
          $success = false;
        }
        
        if(empty($_POST['telefon']))
        {
          $error['telefon'] = "Bitte ihre Telefonnummer eingeben! ";
          $success = false;
        }
  }
  
  if(isset($success) && $success === true)
    {
      
    $_SESSION['name'] = $_POST['name'];
	$_SESSION['vorname'] = $_POST['vorname'];
	$_SESSION['geburtsdatum'] = $_POST['geburtsdatum'];
	$_SESSION['familienstand'] = $_POST[''];
	$_SESSION['staatsange'] = $_POST['staatsange'];
	$_SESSION['strasse'] = $_POST['strasse'];
	$_SESSION['plz'] = $_POST['plz'];
	$_SESSION['ort'] = $_POST['ort'];
	$_SESSION['telefon'] = $_POST['telefon'];
	$_SESSION['fax'] = $_POST['fax'];
	$_SESSION['email'] = $_POST['email'];
	$_SESSION['mobil'] = $_POST['mobil'];
    $_SESSION['anstellung'] = $_POST['anstellung'];	
	$_SESSION['ber_ort'] = $_POST['ber_ort'];
	$_SESSION['ber_bundesland'] = $_POST['ber_bundesland'];
	$_SESSION['ber_land'] = $_POST['ber_land'];
	$_SESSION['jobtitel'] = $_POST['jobtitel'];
    $_SESSION['branche'] = $_POST['branche'];
	$_SESSION['ber_beginn'] = $_POST['ber_beginn'];
	$_SESSION['ber_ende'] = $_POST['ber_ende'];
	$_SESSION['ber_info'] = $_POST['ber_info'];
	$_SESSION['grad_ausbildung'] = $_POST['grad_ausbildung'];
	$_SESSION['fachrichtungen'] = $_POST['fachrichtungen'];
	$_SESSION['schule'] = $_POST['schule'];
	$_SESSION['aus_ort'] = $_POST['aus_ort'];
	$_SESSION['aus_bundesland'] = $_POST['aus_bundesland'];
	$_SESSION['aus_land'] = $_POST['aus_land'];
	$_SESSION['aus_beginn'] = $_POST['aus_beginn'];
	$_SESSION['aus_ende'] = $_POST['aus_ende'];
	$_SESSION['aus_info'] = $_POST['aus_info'];
    
    if( isset( $_POST[ 'send1' ] ) )
    {
        // Tu dies, wenn der linke Button geklickt wurde
           header('Location: bewerbung_prue1.php?');
    }
    elseif( isset( $_POST[ 'send2' ] ) )
    {
        // Tu jenes, wenn der rechte Button geklickt wurde
              header('Location: bewerbung_prue2.php?');
    }  
     
  }
  else
  { 

?>

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<meta name="generator" content="Adobe GoLive" />
  <title>test</title>
  
<style type="text/css">
  <!--
  html, body {
  	width: 100%;
  	height: 100%;
  	margin: 0;
  	border: 0;
  	padding: 0;
  }
  body { font-size: small; font-family: Verdana, Arial, Helvetica, sans-serif; overflow: hidden;  /* Scrollbalken im Fenster unterbinden */
  }
  #mitte { position: absolute; top: 170px;		/* Abstand zum oberen Fensterrand */
  	left: 0;		/* Abstand zum linken Fensterrand */
  	bottom: 25px;		/* Abstand zum unteren Fensterrand */
  	right: 0px;		/* Abstand zum rechten Fensterrand */
  	overflow: auto; visibility: visible;		/* Scrollbalken, falls notwendig */
  }
  * html #mitte {
  	top: 0;
  	left: 0;
  	width: 100%;
  	height: 100%;
  	border-top-width: 170px;	/* = Kopfzeilenh�¶he */
  	border-left-width: 200px;	/* = Spaltenbreite links */
  	border-bottom-width: 25px;	/* = Fu�?zeilenh�¶he */
  	border-right-width: 0px;	/* = Spaltenbreite rechts */
  	border-style: solid;
  }
  #mitte .inhaltDiv {
  	margin: 20px;		/* Abstand des Inhalts zum Blockrand */
  }
  #oben { background-image: url(css/banner.jpg); background-repeat: repeat-x; position: absolute; top: 0;			/* Abstand zum oberen Fensterrand */
  	left: 0;		/* Abstand zum linken Fensterrand */
  	right: 0;		/* Abstand zum rechten Fensterrand */
  	height: 170px;		/* Blockh�¶he */
  	padding: 0;		/* Interpretation Boxmodell! */
  	overflow: hidden;	/* Scrollbalken unterbinden */
  	z-index: 4; visibility: visible;		/* h�¶chste z-Ebene! */
  }
  * html #oben {
  	width: 100%;
  	height: 170px;
  }
  #oben .inhaltDiv {
  	margin: 10px;		/* Abstand des Inhalts zum Blockrand */
  }
  #unten { position: absolute; left: 0;		/* Abstand zum linken Fensterrand */
  	bottom: 0;		/* Abstand zum unteren Fensterrand */
  	right: 0;		/* Abstand zum rechten Fensterrand */
  	height: 25px;		/* Blockh�¶he */
  	padding: 0;		/* Interpretation Boxmodell! */
  	background-color: #000; overflow: hidden;	/* Scrollbalken unterbinden */
  	z-index: 2; visibility: visible; border-top: 3px solid #b7b7b7; }
  * html #unten {
  	left: 0;
  	width: 100%;
  	height: 25px;
  	border-top-width: 0;
  	border-left-width: 200px;	/* = Spaltenbreite links */
  	border-bottom-width: 0;
  	border-right-width: 0;
  	border-style: solid;
  }
  #unten .inhaltDiv {
  	margin: 10px;		/* Abstand des Inhalts zum Blockrand */
  }

  
  #navcontainer ul
{
padding: 0;
margin: 0;
padding-top: 0;
margin-top: 0;
background-color: #355495;
color: white;
float: left;
width: 100%;
font-family: arial, helvetica, sans-serif;
}

#navcontainer ul li { display: inline; }

#navcontainer ul li a
{
padding: 0.2em 1em;
background-color: #355495;
color: white;
text-decoration: none;
float: left;
border-right: 1px solid #fff;
}

#navcontainer ul li a:hover
{
background-color: #369;
color: #fff;
}
#Ebene17 { background-image: url(css/bannerct.jpg); height: 165px; width: 1020px; left: 0; top: 0; position: absolute; visibility: visible; }
#Ebene19 { height: 36px; width: 716px; left: 0; top: 115px; position: absolute; visibility: visible; }
#Ebene1 { color: #909090; font-size: x-large; font-family: Verdana, Arial, Helvetica, sans-serif; height: 46px; width: 239px; left: 80px; top: 20px; position: absolute; visibility: visible; }
#Ebene2 { height: 100px; width: 550px; left: 10px; top: 70px; position: absolute; visibility: visible; border-top: 1px solid #cbcbcb; }
#Ebene3 { height: 100px; width: 402px; left: 608px; top: 80px; position: absolute; visibility: visible; border-top: 1px solid #cbcbcb; }
#Ebene4 { color: #355495; background-color: #cbd4e6; height: 222px; width: 1003px; left: 10px; top: 190px; position: absolute; visibility: visible; border: solid 1px; }
#Ebene5 { color: #355495; background-color: #cbd4e6; height: 97px; width: 1003px; left: 10px; top: 431px; position: absolute; visibility: visible; border: solid 1px; }
#Ebene1 { height: 46px; width: 239px; left: 10px; top: 20px; position: absolute; visibility: visible; }
#Ebene2 { height: 100px; width: 550px; left: 10px; top: 80px; position: absolute; visibility: visible; }
#Ebene3 { height: 100px; width: 450px; left: 560px; top: 80px; position: absolute; visibility: visible; }
#Ebene4 { height: 230px; width: 1000px; left: 10px; top: 190px; position: absolute; visibility: visible; }
#Ebene5 { height: 149px; width: 1000px; left: 10px; top: 431px; position: absolute; visibility: visible; }
#Ebene6 { height: 120px; width: 1000px; left: 10px; top: 540px; position: absolute; visibility: visible; }
#Ebene7 { color: #355495; background-color: #cbd4e6; height: 292px; width: 1003px; left: 10px; top: 670px; position: absolute; visibility: visible; border: solid 1px; }
#Ebene8 { color: #355495; background-color: #cbd4e6; height: 296px; width: 1003px; left: 10px; top: 970px; position: absolute; visibility: visible; border: solid 1px; }
</style>
  </head>
  
  <body>
  
  <div id="mitte"><div class="inhaltDiv">
				<form action="bewerbung_prue1.php" name="FormName">
					<div id="Ebene1">
						Bewerbung</div>
					<div id="Ebene2">					
					<table width="598" border="0" cellspacing="2" cellpadding="0">
						<tr>
							<td>Position</td>
							<td></td>
						</tr>
						<tr>
							<td>Beschreibung</td>
							<td></td>
						</tr>
						<tr>
							<td>Beginn</td>
							<td></td>
						</tr>
						<tr>
							<td></td>
							<td></td>
						</tr>
					</table></div>
					<div id="Ebene3"><b>  <?php echo isset($error['pname']) ? $error['pname'] : '';?> </b></div>
					<div id="Ebene4">					
					<table width="1003" border="0" cellspacing="2" cellpadding="0">
						<tr>
							<td>
								<h3>Kontaktinformationen</h3>
							</td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<td>Name</td>
							<td><input type="text" name="name" size="24" value="<?php echo $_POST['pname'];?>"></td>
							<td>Ort</td>
							<td><input type="text" name="ort" size="24" /></td>
						</tr>
						<tr>
							<td>Vorname</td>
							<td><input type="text" name="vorname" size="24" /></td>
							<td>PLZ</td>
							<td><input type="text" name="plz" size="24" /></td>
						</tr>
						<tr>
							<td>Geburtsdatum</td>
							<td><input type="text" name="geburtsdatum" size="24" /></td>
							<td>Telefon</td>
							<td><input type="text" name="telefon" size="24" /></td>
						</tr>
						<tr>
							<td>Familienstand</td>
							<td><input type="text" name="familienstand" size="24" /></td>
							<td>Fax</td>
							<td><input type="text" name="fax" size="24" /></td>
						</tr>
						<tr>
							<td>Staatsangehörigkeit</td>
							<td><input type="text" name="staatsange" size="24" /></td>
							<td>E-Mail</td>
							<td><input type="text" name="email" size="24" /></td>
						</tr>
						<tr>
							<td>Straße</td>
							<td><input type="text" name="strasse" size="24" /></td>
							<td>Mobil</td>
							<td><input type="text" name="mobil" size="24" /></td>
						</tr>
					</table></div>
					<div id="Ebene5">					
					<table width="1003" border="0" cellspacing="2" cellpadding="0">
						<tr>
							<td>
								<h3>Eigene Bewerbungsunterlagen anfügen</h3>
							</td>
							<td></td>
						</tr>
						<tr>
							<td><input type="file" name="fileGetterName" size="24" /></td>
							<td>
								<div align="right">
									<button name="send1" type="button">Eigene Bewerbung senden</button></div>
							</td>
						</tr>
					</table></div>
					<div id="Ebene8">						
					<table width="1003" border="0" cellspacing="2" cellpadding="0">
							<tr>
								<td>
									<h3>Berufserfahrung</h3>
								</td>
								<td></td>
								<td></td>
								<td></td>
							</tr>
							<tr>
								<td>letzte Anstellung</td>
								<td><input type="text" name="anstellung" size="24" /></td>
								<td>Branche</td>
								<td><input type="text" name="branche" size="24" /></td>
							</tr>
							<tr>
								<td>Stadt/ Ort</td>
								<td><input type="text" name="ber_ort" size="24" /></td>
								<td>Eintritt (Datum)</td>
								<td><input type="text" name="ber_beginn" size="24" /></td>
							</tr>
							<tr>
								<td>Bundesland</td>
								<td><input type="text" name="ber_bundesland" size="24" /></td>
								<td>Austritt (Datum)</td>
								<td><input type="text" name="ber_ende" size="24" /></td>
							</tr>
							<tr>
								<td>Land</td>
								<td><input type="text" name="ber_land" size="24" /></td>
								<td>Beschreibung der Tätigkeit</td>
								<td><textarea name="ber_info" rows="6" cols="50"></textarea></td>
							</tr>
							<tr>
								<td>Job-Titel (aktuell bzw. zuletzt)</td>
								<td><input type="text" name="jobtitel" size="24" /></td>
								<td></td>
								<td>
									<div align="right">
										<button name="send2" type="button">Bewerbungsformular senden</button></div>
								</td>
							</tr>
						</table></div>
					<div id="Ebene7">					
					<table width="1003" border="0" cellspacing="2" cellpadding="0">
						<tr>
							<td>
								<h3>Ausbildung</h3>
							</td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<td>Abschluss/ Grad der Ausbildung</td>
							<td><input type="text" name="grad_ausbildung" size="24" /></td>
							<td>Land</td>
							<td><input type="text" name="aus_land" size="24" /></td>
						</tr>
						<tr>
							<td>Fachrichtungen</td>
							<td><input type="text" name="fachrichtungen" size="24" /></td>
							<td>Beginn (Datum)</td>
							<td><input type="text" name="aus_beginn" size="24" /></td>
						</tr>
						<tr>
							<td>Name der Schule</td>
							<td><input type="text" name="schule" size="24" /></td>
							<td>Ende (Datum)</td>
							<td><input type="text" name="aus_ende" size="24" /></td>
						</tr>
						<tr>
							<td>Stadt/Ort</td>
							<td><input type="text" name="aus_ort" size="24" /></td>
							<td>Relevante Informationen ( z.B. Schwerpunkte, Auszeichnungen, etc.)</td>
							<td><textarea name="aus_info" rows="6" cols="50"></textarea></td>
						</tr>
						<tr>
							<td>Bundesland</td>
							<td><input type="text" name="aus_bundesland" size="24" /></td>
							<td></td>
							<td></td>
						</tr>
					</table></div>
					<div id="Ebene6"></div>
				</form>
				  			  <?php
 // Der Else-Zweig wird geschlossen
  }
  ?>
  				<h1></h1>
			</div></div>
  
  <div id="oben"><div class="inhaltDiv">
  <h2></h2>
				<div id="Ebene17">
					<div id="Ebene19"><div id="navcontainer">
<ul id="navlist">
<li><a href="index.html">Home</a></li>
<li><a href="leistung.html">Leistung</a></li>
<li><a href="branchen.html">Branchen</a></li>
<li><a href="produkte.html">Produkte</a></li>
<li><a href="stellen.php">Stellen</a></li>
<li id="active"><a href="kontakt.html" id="current">Kontakt</a></li>
</ul>
</div></div>
				</div>
				<h2></h2>
			</div></div>
  
  <div id="rechts"><div class="inhaltDiv">
				<h2></h2>
				<p></p>
				<p></p>
				<p></p>
			</div></div>
  
  <div id="unten"><div class="inhaltDiv">
  <h2></h2>
  </div></div>
  
  </body>
  </html>

Ich weis das ist haufen code aber ich finde einfach den Fehler nicht deshalb poste ich liebe den code der ganzen Seite!

Hoffentlich kann mir einer helfen...

MfG

Counteract
 
Aber warum funktioniert meine Abfrage von Oben nicht mehr? Diese soll ja eigentlich sagen was passiert wenn man die buttons drückt!

Habe ich da einen Fehler gemacht Weil man immer nur auf eine Seite kommt egal welchen Butten man drückt!
 
Status
Nicht offen für weitere Antworten.
Zurück