Mailinglisten-Archive |
Hallo Liste,
bin am verzweifeln. Warum habe ich in den Variablen jeweils
keinen Wert????
<?php
$Wochen =
array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28
,29,30,31,32,33,34,35,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53);
?>
<form action="irgendwas.php3" method="POST" enctype="multipart/form-data">
<center>
<table border=0 cellpadding=2 cellspacing=0 bgcolor="FFFFEB"><tr><td>
<font face="Arial,Helvetica,Verdana" size="3"><b>Bitte wählen Sie ein Jahr und
eine Kalenderwoche aus</b><br>
<font size="2"> oder geben Sie ein Suchwort ein.</font></font>
<table bgcolor="#FFFFFF" width="100%" cellpadding=5 cellspacing=0 border=0>
<tr><td align="RIGHT"><font face="Arial" size="2">Jahr</font></td><td>
<select name="sJahr" size="1">
<option value="1998">1998</option>
<option value="1999">1999</option>
<option value="2000">2000</option>
<option value="2001" selected>2001</option>
<option value="2002">2002</option>
</select></td></tr>
<?
echo "Hallo Jahr ".$sJahr." da";
echo "<tr><td align='RIGHT'><font face='Arial'
size='2'>Woche</font></td><td>\n";
echo "<select name='sWoche' size='1'>\n";
for ($x=0;$x<count($Wochen);$x++)
{
echo "<option value='$Wochen[$x]'>$Wochen[$x]</option>\n";
}
echo "</select></td></tr>\n";
echo "<tr><td align='RIGHT'><font face='Arial'
size='2'>Suchwort</font></td><td>\n";
echo "<input type='Text' name='sWort' size='50' maxlength='200' ></td></tr>\n";
?>
</table>
</td></tr></table>
</center>
<? echo "Woche ".$sWoche; ?> ------- ist leer
<? echo "Wort ".$sWort; ?> -------- ist auch leer
<? echo "Jahr ".$sJahr; ?> -------- ist auch leer
<input type="Hidden" name="Woche" value="<? echo $sWoche ?>">
<input type="Hidden" name="Jahr" value="<? echo $sJahr ?>">
<input type="Hidden" name="Wort" value="<? echo $sWort ?>">
<input type="Submit" name="btnUpdate" value="Suche starten">
</form>
Barbara
php::bar PHP Wiki - Listenarchive