hi, ich schreibe gerade ein newsscript für meine Website: Hier die Datei zum erstellen von News:
<!--start of the file--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <!-- you can edit the head --> <head> <title>ProJunkies |©| are born</title>
<meta name="title" content="ProJunkies |©| are born"> <meta name="copyright" content="ProJunkie-Team"> <meta name="author" content="nokill"> <meta name="free coworker" content="Arucard,Diesel"> <meta name="description" content="Wenn ihr eine Seite sucht, die mit Games,Manga und Programmieren,zu tun hat, seit ihr hier richtig!"> <meta name="robots" content="follow"> <meta name="keywords" lang="de" content="pc, hacking, projunkies, programmieren, games, manga, nokill2003, nokill, emulation, emus, index, dreammax, supamax"> <meta name="keywords" lang="en-us" content="pc, hacking, projunkies, programming, games, manga, nokill2003, nokill, emulation, emus, index, dreammax, supamax"> </head> <body> <!--now what the user can see--> <FORM ACTION="news.php" METHOD=POST> Autor: <br> <select selected size="4" name="autor[]"> <option value="1">Arucard[PJ]</option> <option value="2">Biohazard</option> <option value="3">Diesel[PJ]</option> <option value="4">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> <input type="reset" value="Eingaben zurücksetzen"></input> </FORM> <!--end of the file--> </body> </html>
Und hier die datei zum Ausgeben der News:
<? /* Easy News v0.1 © by nok[PJ] visit www.ProJunkies.de.vu if you have any questions mail me: kaidokidmeisterdieb@yahoo.de */
/*Manual:
*/
//now the vars $autor[]=$_REQUEST['autor[]']; $ueberschrift=$_REQUEST['ueberschrift']; $inhalt=$_REQUEST['inhalt']; $datum=strftime("%d.%m.%Y %H:%M:%S");
//start of the file echo " <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n"; echo "<html>\n";
//you can edit the head echo " <head>\n"; echo " <title>ProJunkies |©| are born .........News</title>\n\n"; echo " <meta name='title' content='ProJunkies |©| are born .........News'>\n"; echo " <meta name='copyright' content='ProJunkie-Team'>\n"; echo " <meta name='author' content='nok[PJ]'>\n"; echo " <meta name='free coworker' content='Arucard[PJ],Diesel[PJ],Biohazard'>\n"; echo " <meta name='description' content='Wenn ihr eine Seite sucht, die mit Games,Manga und Programmieren,zu tun hat, seit ihr hier richtig!'>\n"; echo " <meta name='robots' content='follow'>\n"; echo " <meta name='keywords' lang='de' content='pc, hacking, projunkies, programmieren, games, manga, nokill2003, nokill, emulation, emus, news, dreammax, supamax'>\n"; echo " <meta name='keywords' lang='en-us' content='pc, hacking, projunkies, programming, games, manga, nokill2003, nokill, emulation, emus, news, dreammax, supamax'>\n\n"; echo " <link rel='stylesheet' type='text/css' href='../../css/links.css'>\n"; echo " </head>\n"; echo " <body>\n";
//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";
//end of the file echo " </body>\n"; echo "</html>\n"; ?>
Mein Problem ist, dass der Name des Autors aus der Selectbox nicht angezeigt wird.
bitte schnelle Hilfe!!!