use fetch api in JS to make a get request to ur php file submittinv username and password.