<-- html part -->
<input id = "username" onClick = "function1('username')"/>
// javascript part
     function function1(username){
      var username = document.getElementbyID(username).value;
   }
 <?php
  // ik this is not php code it's sql code but I'm trying to use the var username in the javascript 
  // part
   SELECT * from users where usernames = (javascript varaiable username)
    ?>
I'm trying to use the var username. In javascript inside my php I was wondering how would I do that?
