Forum Moderators: coopster
So preferably I'm looking to take in information from a form and write that information into my javascript file if that's possible.
Or if I can't do the above I want to take in information from my form and write to a database or new file then read that from my javascript file with php.
If you want to use plain texfiles, you will still need to have files with write permission which could still be traced from the client-side. Also, reading them through javascript will require something like ActiveX which is not found in every single platform/browser and therefore might lead to compatiblity issues.
Your best option is to use a database which would be ideal if you have the neccessary resources. You could organize your users and their entries and even use it to create your text files or dynamic news feeds using XML.