title: Pass PHP value to JQuery
body: <p>I do have a file called userAuthentication.php with a function that returns a Boolean, if the authentication is successful sends "true" otherwise "false".</p>
  
  <p>I also have a view called login.html, with username and password input and the corresponding submit button.</p>
  
  <p>All works well, now I am wondering how could I present a message on the login.html view maybe using JS or JQuery when the function returns "false", i.e. authentication failure.</p>
  
  <p>I have been going through <a href="https://stackoverflow.com/questions/8335267/three-php-value-pass-to-jquery">three PHP value pass to jQuery</a> &amp; <a href="https://stackoverflow.com/questions/4555670/jquery-passing-value-to-php">jquery - passing value to php</a>. </p>
  
  <p>I am looking for the best way to do it, so I could use the same method for any other implementation.</p>
  
  <p>Thanks in advance,</p>