ich halbe folgende seite:
die seite wird so aufgefufen:
seite2.php3?Zone=Rosenheim&Eltern=&KinderGeb=
nun wir bei Programm aber immer Kindergeburtstag ausgegeben!!
an was leigt das???
THX JOat
PHP-Code:
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
<font face="Comic Sans MS">
</head>
<BODY link="#FFFF00" vlink="#FFFF00" alink="#FFFF00" text="#800000" bgcolor="#c1c1c1">
<div align="center">
<center>
<font size="5">Anmeldeformular</font><form action="seite3.php3" method="POST">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="52%" id="AutoNumber1" height="322">
<tr>
<td width="40%" height="35">Wunschtermin:</td>
<td width="70%" height="35">
<font color="#FFFF00" face="Comic Sans MS">
<input type="text" name="Datum" size="20"></font></td>
</tr>
<tr>
<td width="40%" height="35">Organisation: </td>
<td width="70%" height="35">
<font color="#FFFF00">
<input type="text" name="Organisation" size="20"></font></td>
</tr>
<tr>
<td width="40%" height="35">Ansprechpartner:*<br>
Vorname / Nachname</td>
<td width="70%" height="35">
<font color="#FFFF00">
<input type="text" name="Vorname" size="20">
<input type="text" name="Nachname" size="20"></font></td>
</tr>
<tr>
<td width="40%" height="35">Adresse:*</td>
<td width="70%" height="35"><font color="#FFFF00"><input type="text" name="Adresse" size="20"></font></td>
</tr>
<tr>
<td width="40%" height="35">PLZ:*</td>
<td width="70%" height="35">
<font color="#FFFF00"><input type="text" name="PLZ" size="5" maxlength="5"></font></td>
</tr>
<tr>
<td width="40%" height="35">Ort:*</td>
<td width="70%" height="35"><font color="#FFFF00"><input type="text" name="Ort" size="20"></font></td>
</tr>
<tr>
<td width="40%" height="35">E-Mail:*</td>
<td width="70%" height="35"><font color="#FFFF00"><input type="text" name="Email" size="20"></font></td>
</tr>
<tr>
<td width="40%" height="35">Homepage:</td>
<td width="70%" height="35">
<font color="#FFFF00">
<input type="text" name="URL" size="20" value="http://"></font></td>
</tr>
<tr>
<td width="40%" height="35">Telefon:*</td>
<td width="70%" height="35">
<font color="#FFFF00"><input type="text" name="Telefon" size="20"></font></td>
</tr>
<tr>
<td width="40%" height="35">Fax:</td>
<td width="70%" height="35"><font color="#FFFF00"><input type="text" name="Fax" size="20"></font></td>
</tr>
<?
if ( $Eltern == "1" || $KinderGeb == "1" ) {
?>
<tr>
<td width="40%" height="35">Anzahl Eltern:*</td>
<td width="70%" height="35">
<font color="#FFFF00">
<input type="text" name="Eltern2" size="20"></font><font color="#FFFF00" face="Comic Sans MS"> </font></td>
</tr>
<tr>
<td width="40%" height="35">Anzahl Kinder:*</td>
<td width="70%" height="35">
<font color="#FFFF00" face="Comic Sans MS">
<input type="text" name="Kinder" size="20"></font></td>
</tr>
<?
}
else
{?>
<tr>
<td width="40%" height="35">Teilnehmerzahl:*</td>
<td width="70%" height="35">
<font color="#FFFF00">
<input type="text" name="Teilnehmerzahl" size="20"></font><font color="#FFFF00" face="Comic Sans MS"> </font></td>
</tr>
<?
}?>
<tr>
<td width="40%" height="35">Ort:</td>
<td width="70%" height="35">
<font face="Comic Sans MS"><? echo "$Zone" ?></font></td>
</tr>
<? if ($KinderGeb="1") { ?>
<tr>
<td width="40%" height="35">Alter:*</td>
<td width="70%" height="35"><font color="#FFFF00"><select size="1" name="Alter1">
<option selected>Von</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select><select size="1" name="Alter2">
<option selected>Bis</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select></font></td>
</tr>
<? }
else
{
?>
<tr>
<td width="40%" height="35">Alter:*</td>
<td width="70%" height="35"><font color="#FFFF00"><select size="1" name="Alter1">
<option selected>Von</option>
<option value="16">12</option>
<option value="17">13</option>
<option value="18">14</option>
<option value="19">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
</select><select size="1" name="Alter2">
<option selected>Bis</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value=">30">>30</option>
</select></font></td>
</tr>
<?}?>
<?
if ( $Eltern == "1" ) {
?>
<tr>
<td width="40%" height="35">Programm:*</td>
<td width="70%" height="35">Familien</font></td>
<input type=hidden name=Programm value="Familien">
</tr>
<?
}
if ( $KinderGeb == "1" ) {
?>
<tr>
<td width="40%" height="35">Programm:*</td>
<td width="70%" height="35">Kindergeburtstag</font></td>
<input type=hidden name=Programm value="Kindergeburtstag">
</tr>
<?
}
else
{?>
<tr>
<td width="40%" height="35">Programm:*</td>
<td width="70%" height="35"><font color="#FFFF00"><select size="1" name="Programm">
<option selected>Programmauswahl</option>
<option value="Jugendliche">Jugendliche</option>
<option value="MitarbeiterInnen">MitarbeiterInnen</option>
<option value="LeherInnen">LehrerInnen</option>
<option value="Pädagogische Berufe">Pädagogische Berufe</option>
<option value="Ehrenamtliche">Ehrenamtliche</option>
<option value="Azubis">Auszubildende</option>
<option value="Kindergeburtstag">Kindergeburtstag</option>
</select></font></td>
</tr>
<?} ?>
<tr>
<td width="40%" height="35">Kommentar:</td>
<td width="70%" height="35"><font color="#FFFF00"><textarea rows="6" name="Kommentar" cols="31"></textarea></font></td>
</tr>
</table>
* = Pflichtfelder<p>
<input type=hidden name=Zone value="<? print $Zone ?>">
<?
if ( $Eltern == "1" ) {
?>
<input type=hidden name=Eltern12 value="1">
<? }
else
{
}
?>
<input type="Submit" name="abschicken" value="Abschicken"></font></td> </p>
</form>
</center>
</div>
<br><p><br><p align="left"><font color="#C1C1C1" face="Comic Sans MS" size="1">
<a href="mailto:go4teamwork@erzieherweb.de">Copyright © go4teamwork.de 2001 / 2002
by icebaer</a></font></p>
</body>
</html>
die seite wird so aufgefufen:
seite2.php3?Zone=Rosenheim&Eltern=&KinderGeb=
nun wir bei Programm aber immer Kindergeburtstag ausgegeben!!
an was leigt das???
THX JOat
Kommentar