on my webby for school, im trying to get my text fields to log all entries so my html file looks like
...."
<center><font> Please enter your first and last name.</font></center>
<form action="PHP.php" method="get" autocomplete="off">
First Name: <INPUT name="First Name" value="" size="10"><BR>
Last Name: <INPUT name="Last Name" value="" size="10"><BR>
<CENTER><INPUT type="submit"></CENTER>
</form>"
PHP.php contains
"<?php
header("Location: Home.html");
$handle = fopen("log.txt", "a");
foreach($_GET as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>"
and it should record entries in log.txt
but when i try 2 submit the names 2 see if it recoreded, and nothing comes up in teh log
$value) { fwrite($handle, $variable); fwrite($handle, "="); fwrite($handle, $value); fwrite($handle, "\r\n"); } fwrite($handle, "\r\n"); fclose($handle); exit; ?>
btw i have no idea if teh php is right, its probably where the wrong is we didnt take php yet
any help pleaseee