$.ajax({
url: 'test.php',
type: "POST",
data: registerForm.serialize(), region: $("#regio option:selected").text(),
success: function(data) {
console.log(data)
}
});
Now i use this i get all data with registerForm.serialize() i can call them in test.php with $_POST['the_name'];
Now i need to pass to test.php $("#regio option:selected").text() whenever i do echo $_POST['region'] in test.php it doesnt see the region attribute where im sending inside the ajax to test.php.
How do i pass $("#regio option:selected").text() to test.php and call it in test.php.