Link geht net und nein beim submit und reset button sind kein > zuviel wenn du genauer hinschaust ist das was dann auf dem button steht also ">> eintagen".
Und wo muss ich das $char = $_POST[´char´]; hinschreiben?
Also hier mal der ganze Code:
Die index.html
Code:
<html>
<head>
<title>GermanStars PSO BB Item Database</title>
</head>
<body>
<center><font color=red>
<u>GermanStars PSO BB Item Database</p></u></font></center>
<form action="item.php" method="post">
<table border="0" cellpadding="0" cellspacing="0" align=center>
<tr>
<td><font color=blue>Char:  </td></font>
<td><input type=text name="char" size=30></td>
</tr>
<tr>
<td><font color=blue>Item:  </td></font>
<td><input type=text name="item" size=30></td>
</tr>
<table border="1" cellpadding="0" cellspacing="0" align=center>
<tr>
<td><input type="submit" name="submit" value=">> eintragen"></td>
<td><input type="reset" name="clear" value=">> löschen"></td>
</tr>
</table>
</form>
</body>
</html>
Die item.php
Code:
<?
$datei = fopen("item.txt","a+");
$zeile = fgets($datei,100);
$char = $_POST['char'];
$item = $_POST['item'];
fwrite($datei, $char, $item);
fclose($datei);
?>
Wer weiss Rat?