I am trying to send a PHP array to a page for processing and validation. Here is my code on my registration page:

$elements = $_POST['elements'];
$.ajax({ url: 'process.php',
				data: "submit=1&elements="<? $elements ?>,
         		type: 'post',
I am able to retrieve values from this array.

Then when I get to the process.php, and I do the following, I get an empty response:

$uname = $elements[0];
	echo $uname;