2 Spørgsmål
Hej,jeg har to spørgsmål
1. hvorfor virker denne form ikke ? det sker intet hvis man trykker Submit
<?php
$text = \'New News Post\';
require(\"header2.php3\");
if (isset($paswd) ) {
if($paswd == \"oeew18\"){
echo \"News added\";
$db = mysql_connect(\"localhost\", \"pyrogames\", \"oeew18\");
mysql_select_db(\"pyrogames\", $db);
$news_date = time();
$nl2br = nl2br($news_text);
mysql_query(\"INSERT INTO news_team (date, headline, text) VALUES (\'$news_date\', \'$news_headline\', \'$nl2br\')\");
echo \"<br><br><a href=\'News.Team.Read.php3\'>read news</a>\";
}
}
else {
?>
You want to add a litlle news to the News section for the PyroGames team ? if yes, fill in the forms belov and press \"Submit News.\"
<FORM METHOD=\"POST\" ACTION=<?php echo $PHP_SELF; ?>>
Password: <INPUT TYPE=\"PASSWORD\" NAME=\"paswd\"> <br><br>
Headline: <INPUT TYPE=\"TEXT\" NAME=\"news_headline\"> <br><br>
Text: <TEXTAREA NAME=\"news_text\" ROWS=\"5\" COLS=\"50\">Type New Here !!!</TEXTAREA> <br><br>
<INPUT TYPE=\"SUBMIT\" VALUE=\"Submit News\">
</FORM>
<?php
}
require(\"footer2.php3\"); ?>
det andet spørgsmål.
hvordan laver man de \"specielle\" knapper som der er på Eksperten3 ?
Dea_PG
