Hi,
ich schreibe gerade ein Newsscript für meine Website:
<FORM ACTION="news.php" METHOD=POST>
Autor:
<br>
<select name="Autor" size="4">
<option>Arucard[PJ]</option>
<option>Biohazard</option>
<option>Diesel[PJ]</option>
<option>nok[PJ]</option>
</select>
<br>
<br>Überschrift:
<br><input type="text" name="ueberschrift" size="50"></input>
<br>
<br>Inhalt:
<br><textarea type="text" name="inhalt" cols="50" rows="10"></textarea>
<br>
<br>
<br><input type="submit" value="News online stellen"></input>
</FORM>
Wenn ich jetzt einen Namen im Selectfeld makiere, dann kommt er im Newsfeld nicht. Hier das Newsfeld:
//now the vars
$autor=$_REQUEST[autor];
$ueberschrift=$_REQUEST[ueberschrift];
$inhalt=$_REQUEST[inhalt];
$datum=strftime("%d.%m.%Y %H:%M:%S");
//now what the user can see
echo " <div>\n";
echo " <img src='../../bilder/top_news.gif' width='650' height='40' border='0' alt=''>\n";
echo " <br>\n";
echo " </div>\n\n";
echo " <table height='' width='650px' border='1'>\n";
echo " <tr>\n";
echo " <td height='25px' width='75%'>\n";
echo " Autor: $autor\n";
echo " </td>\n";
echo " <td height='25px' width='25%'>\n";
echo " $datum\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style='padding-left:5px; vertical-align:top;' colspan='2'>\n";
echo " <div>\n";
echo " <h3>$ueberschrift</h3>\n";
echo " $inhalt<br>\n";
echo " </div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n\n";
bitte schnell antworten und schon mal thx im vorraus
mfg nokill2003