I cant get it to work, heres the code, what am I doing wrong?
when I run that above code (all the _POST variables are predefined) the file remains empty. whats wrong with it?
PHP:
$handle = fopen('users.log',w);
if(!fwrite($handle, "UID: ".$_POST['uid']."PCO: ".$_POST['pcode']."EMA: ".$_POST['email']."FNA: ".$_POST['fname']."SNA: ".$_POST['sname'])) {
echo( '<center>Error creating user profile!<p><a href = \'register.php\'>Try Again</a></p></center>');
exit;
}else {
echo( '<center>Registration complete!<p><a href = \'index.php\'>Continue</a></p></center>');
exit;
}
when I run that above code (all the _POST variables are predefined) the file remains empty. whats wrong with it?







