title: SyntaxError: identifier starts immediately after numeric literal. Passing php variable to JavaScript
body: <p>I am trying to pass in two variables to a JavaScript function: the input itself and the user id. I call the function using the onclick attribute of the input.</p>
  
  <pre><code> echo "&lt;input type = 'submit' class = 'replyButton' id = 'replyButton'
   value = 'reply' onclick = 'insertComment(this, $user_id);'&gt;";
  </code></pre>
  
  <p>The variables go into a JavaScript function:</p>
  
  <pre><code>function insertComment(input, user)
  {
       //use input and user id to carry out tasks.
  } 
  </code></pre>
  
  <p>The error message given is at the function call to 'insertComment()' in the onclick of the input. The error message looks like this:</p>
  
  <pre><code>SyntaxError: identifier starts immediately after numeric literal    
  
         insertComment(this, 9f60d869342a);
  </code></pre>
  
  <p>I have tried multiple quote and dot combinations and have checked the other posts on StackOverFlow. They were all to no avail.
  Your help in resolving this error is greatly appreciated.</p>