title: How do I echo out a php variable using javascript?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4287357/access-php-variable-in-javascript">Access PHP variable in JavaScript</a>  </p>
  </blockquote>
  
  
  
  <p>I'm currently working on a countdown timer for a quiz. However, the admin can set a quiz at different time intervals like 15, 30, 45, 60 mins. I used this as a php variable and for the countdown I'm using a JavaScript. The problem I'm facing now is I don't know how to echo out the php variables in using the JavaScript. So once the the admin set 15 mins and a student click the quiz the 15 mins timer will start to count down and when it reaches 0 it will says "Time is up! End of quiz. Answers have been submitted successfully."</p>
  
  <p>Please help! ): </p>