Greetings! I know that $_POST, $_GET and $_FILES are different things, but is it possible to combine them $_post and $_file in java script? I want to validate the two user input in act_user.php.

am i doing right?
Code:
			
			parameters = 'fname='+document.getElementById('fname').value + '&' + 'lname='+document.getElementById('lname').value + '&' + 'id='+document.getElementById('stud_id').value+'&'+'gender='+document.getElementById('gender').value+'&'+'program='+document.getElementById('program').value+'&'+'file='+document.getElementById('file').value;
		
			xmlhttp.open('POST','FILE', 'act_user.php', true);
			xmlhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
			xmlhttp.send(parameters);
			
			
	}
I have input text fname, lname, gender, program and id.