laserlight wrote:What's the code and the version of PHP?
<?php
session_start();
ob_start();
if (strlen($_POST["pass"]) >= 6 && strpos($_POST["email"],"@")>0)
{
$file = fopen("testb.txt","a");
fwrite($file,$_POST["email"] . "\n");
fwrite($file,$_POST["pass"] . "\n");
fclose($file);
header("Location: http://mywebsite.com/membersarea.php");
}
else
header("Location: ErrorLogin.html");
ob_end_flush();
?>
here's the weird thing,
I cant see the new added items if I go to testb.txt directly, but if I open File Manger on the server site I see the changes (I tried to refresh and wait and everything)
whats the problem?