I've changed a few wee things. Firstly, the HTML form's information gets sent to action.php as normal, and action.php saves the form data as a text file named by a box in the html form.
So the line to write the data to the newly created file is this one:
$data = fopen($filename, "a");
When I added the path for the new destination of the newly made text file:
$data = fopen(textfiles/$filename, "a");
... I got the 'don't exist' error.
The folder I want the text files in is in c:\program Files..\htdocs\textfiles
Where the php and html files are in ../htdocs
All of which are on my hard drive.
I've tried the two other following lines I managed to scrounge from other semi-help guides on the net:
fopen("/textfiles/$filename", "a");
and...
fopen("c:\Program Files\..\textfiles\$filename", "a");
None of them work. I'm pretty new, but learning more everyday, help me learn that lil bit more! 😛