Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Great suggestion. I'm calling the ajax from a JS folder (hence the ../). I know it's getting to the php file though, because the "Platoons" folder is created inside of the "Users" folder when I remove the $user = $_POST['user'] from my php file. I'm experimenting with adding ?user=Tommy to my url though, but still no success. It seems that no approach actually posts data to my php file. URGH! Commented Feb 24, 2018 at 3:07
  • try to inspect whether the ajax call is going. Then you will find the clue Commented Feb 24, 2018 at 3:15
  • How would I test this? Commented Feb 24, 2018 at 3:16
  • press CTRL+SHIFT+I then go to network tab, then click on your custom button to call the ajax, then you will see ajax call will go to the specified action. Commented Feb 24, 2018 at 3:24
  • Thank you. That was helpful. Here's the info I got from that window. I have no idea of what to do with it though. Status: 200 (green dot) Method: POST File: preparesave.php Domain: eardrumvalley.com Cause: JS xhr Type: html Transferred: 652 B Size: 0 B 280ms Commented Feb 24, 2018 at 3:32