das gesamte form:
echo " <form enctype="multipart/form-data" name="anzeige" action="" . $_SERVER['PHP_SELF'] . "?register=" . $enum->NEW_OFFERT . "&action=" . $enum->INSERT_PICTURE . "" method="post">";
echo " <table cellpadding="0" cellspacing="0">";
echo " <tr>";
echo " <td width="23"> </td>";
echo " <td align="right" class="newstext">Rubrik: </td>";
echo " <td align="left" class="newstext">";
echo " <select name="rubrik" class="gender">";
//Fülle Rubrik-Selectbox ab
$rubrik = mysql_query("SELECT ID, Rubrik FROM tblRubrik;")
or die($enum->ERROR_SELECT);
$anzrubrik = mysql_num_rows($rubrik);
for($x = 0; $x < $anzrubrik; $x++)
{
mysql_data_seek($rubrik, $x);
$temp = mysql_fetch_array($rubrik);
echo "<option value="" . $temp[0] . "">" . $temp[1] . "</option>";
}
echo " </select></td>";
echo " <td align="right" class="newstext"> </td>";
echo " <td align="left" class="newstext"> </td>";
echo " </tr>";
echo " <tr>";
echo " <td width="23"> </td>";
echo " <td align="right" class="newstext">Interesse: </td>";
echo " <td align="left" class="newstext">";
echo " <select name="interesse" class="gender">";
//Fülle Interesse-Selectbox ab
$kategorie = mysql_query("SELECT ID, Kategorie FROM tblKategorie WHERE NewsKategorie = 0;")
or die($enum->ERROR_SELECT);
$anzkat = mysql_num_rows($kategorie);
for($x = 0; $x < $anzkat; $x++)
{
mysql_data_seek($kategorie, $x);
$temp = mysql_fetch_array($kategorie);
echo "<option value="" . $temp[0] . "">" . $temp[1] . "</option>";
}
echo " </select></td>";
echo " <td align="right" class="newstext"> </td>";
echo " <td align="left" class="newstext"> </td>";
echo " </tr>";
echo " <tr>";
echo " <td width="23"> </td>";
echo " <td align="right" class="newstext">Titel: </td>";
echo " <td align="left" class="newstext"><input type="text" class="user" name="titel"></td>";
echo " <td align="right" class="newstext"> </td>";
echo " <td align="left" class="newstext"> </td>";
echo " </tr>";
echo " <tr>";
echo " <td width="23"> </td>";
echo " <td valign="top" align="right" class="newstext">Anzeige: </td>";
echo " <td colspan="3" align="left" class="newstext">";
echo " <textarea name="anzeigetext" rows="10" cols="45" class="editor"></textarea>";
echo " </td>";
echo " </tr>";
echo " <tr>";
echo " <td width="23"> </td>";
echo " <td align="right" class="newstext">Bild: </td>";
echo " <td align="left" class="newstext"><input type="file" class="pic" name="datei"></td>";
echo " <td align="right" class="newstext"> </td>";
echo " <td align="left" class="newstext"> </td>";
echo " </tr>";
echo " <tr>";
echo " <td width="23"> </td>";
echo " <td align="right" class="newstext"> </td>";
echo " <td colspan="3" width="385" align="right" class="newstext"> ";
echo " <table align="right" width="140" cellpadding="0" cellspacing="0">";
echo " <tr>";
echo " <td width="70" align="center" class="on" onclick="anzeige.reset();">reset</td>";
echo " <td width="70" align="center" class="on" onclick="sendAnzeige();">senden</td>";
echo " </tr>";
echo " </table>";
echo " </td>";
echo " </tr>";
echo " </table>";
echo " </td>";
echo " </tr>";
echo " <tr>";
echo " <td class="unten" width="600" height="40" align="center" valign="middle"> </td>";
echo " </tr>";
echo "</table>";
echo "</form>";