My javascript button calls a javascript function which inside the function there is ajax and ajax calls a php script file, and the php file writes to a text file.
My prob