I having a problem with my svcript... it is writing information being wrote in a form to a text file...
<b><?
$fileread = fopen("tag.txt", "r")Or die("Can't open file");
fclose($fileread);
$fileread = fopen("tag.txt", "w") Or die("Can't open file");
$data = $uname . $upass . $mail;
fwrite($fileread,$data);
fclose($fileread);
?>
<head>
</head>
<body>
<div align="center">
<form name="form1" method="post" action="tag.php">
Name:
<input type="text" name="uname">
<br>
Site:
<input type="text" name="upass">
<br>
E-Mail:
<input type="text" name="mail">
</form>
</div>
</body>
</b>
whats wrong?