both you two variable userid and password send to function sendmail( userid , password ) at your button click event.