What am I doing wrong?
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script><script>$(document).ready(function(){$('#btn1').click(function(){vartmp={"Proc":3236470};
$.ajax({
type: 'POST',
url: 'test.php',
data: {'rel':tmp},
success: function(data) {
$('body').append(data);
//alert(data);
}
});
});
});
</script>
</head>
<body>
<button id="btn1">
teste
</button>
</body>
test.php
<?php
header('Cache-Control: no-cache, must-revalidate');
header('Content-Type: application/json; charset=utf-8')
$aDados = json_decode($_POST['rel'], true);
echo $aDados["Proc"];
?>
ERROR: Parse error: syntax error, unexpected '$ aData' (T_VARIABLE)