Hello:
I have an online volunteer application. After the person clicks Submit, the script gets processed and I would like the results to print to a file.
I have the code working when I hard code a filename in the script. But, is it possible for a new file to be created each time a different person fills out the application?
For example, person A submits and the file appA.html is created. Now, person B submits and the file to be created is appB.html. Right now, I have appA.html hard coded in the script so this file will always be overwritten.
How can I prevent overwriting and have a new file be created?
This is the code I have. Everything above this section of code is the output of the application. Thank you for the help.
[CODE]
<?php
$html = ob_get_flush();
$file=fopen(“volunteer_app.html”, “w”);
fwrite($file, $html);
fclose($file);
?>