News-Seite?
Hi ich habe ein Problem mit PHP unzwas will ich eine Newsseite machen also eine abfrage durch ein formular nur wenn pw und Name richtig sind soll etwas auf einer anderen seite geschrieben werden
So wie ich das hab funzt das nicht;
<body>
<form action="News.php" method="post">
<center>
Name
<input type="text" size="17" name="Inhalt">
<br>
Password
<input type="text" size="10" Pw="Inhalt">
<br><br>
Kommentar
<br>
<textarea rows="5" name="S1" cols="70">
</textarea>
<br><br>
<input type="submit" value="Posten">
</center>
</form>
<?
if($Name == "Masternobi" and $Pw == "Dasveratichnicht")
{
echo ",S1,";
}
else
{
echo "bitte nochmal probieren"
}
?>
</body>
Könnt ihr mir da weiterhelfen?
|