PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to make an online document editor, much like google's own. I need help saving the new content to a new file. But it doesn't save!. I think it doesn't save, because the file doesn't exist initially until now. This is my code so far.
Here is the form
OK!, I must have fixed something, because it is saving to my server. But, it doesn't save the filename, or contents. How is this possible, and what can I do?
I got it to work, saving as .txt. The problem was I was trying to get the textarea by using $_POST['document'], when it should have been $_POST['file'], Minor error. But while I still have this thread up, how can I save the file as .doc or rtf. Is there special encoding?
My initial header was to make sure that the user is loged-in, for extra security purposes.
OK, I got the desired results. Does anybody know how I can save the file other than .txt, possibly to .doc?