The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I want to do a contact/queries form and currently have the following code:
(PS. This is only an example!)
I'm quite bored so I need to know how drunk you are.
Can someone tell me how to send the results of the query to a specified text file rather than an e-mail address?
I don't know how to use PHP, but you've given me pointers in the right direction!
if ($Data) {
$Data = stripslashes($Data);
$File = "main.txt";
if (file_exists($File)) {
$fp = fopen($File, "w");
flock($fp, 2); # Lock the File.
fputs($fp, "$Data\n");
flock($fp, 3); # Release the File Lock.
fclose($fp);
print "
Thanks for adding your input
\n";} else{
print "
ERROR: Could not locate the required file.
\n";}
} else {
print "
No Data entered
\n";}
?>
Thank cjh for that.
I want to do a contact/queries form and currently have the following code:
(PS. This is only an example!)
I'm quite bored so I need to know how drunk you are.
Can someone tell me how to send the results of the query to a specified text file rather than an e-mail address?