title: cPanel usage of separate javascript and php files
body: <p>I have a HTML form and when a specific radiobox is selected and submitted I need to +1 to a value on the same HTML page. However, I need this to be a global change (so the change is visable to other browsers and users).</p>
  <p>I've looked into this and looks like .php is best option for this but I haven't managed to get it working exactly how I want.</p>
  <p>This is basically how I think it should work (It may be that it never works like this):</p>
  <p><a href="https://i.stack.imgur.com/lkam1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lkam1.png" alt="enter image description here" /></a></p>
  <p>The area where I am struggling is sending the variable to the .php and getting the variable back from the .php. Am I correct in thinking that the php will store the variable as the latest value it gets? So, if the variable in the php changes to '4', then no matter what browser or user views it, the variable will always be '4' until it changes again?</p>
  <p>Currently the HTML works exactly how it should and is displayed on a webpage through cPanel. I believe cPanel supports .php.</p>
  <p>I can read a variable from the php if it is in html (saved as .php), and also if the javascript function is also in the html. I want to have the html, javascript and php as 3 separate documents.</p>
  <p>I've tried to explain this as best as I can, if it isn't clear please let me know and I will try to answer any questions.</p>
  <p>Any help is appreciated.</p>