I am trying to send activation confirmation message by link variable , here is my link http://polestarllp.com/users/useractive.php?contranumber=23215, when user click on this link , i just want notify the admin by message.
<script type="text/javascript">
$(document).ready(function () {
var person = "<?php $data; ?> ";
$.ajax({
url: 'http://192.168.1.102:1512/qlikapi/RegisterUser',
//type: 'Post',
data:person,
success: function (data, xhr) {
alert(data.ErrorMessage);
if(data.Success)
{
document.location.reload();
}
},
error: function (xhr, textStatus, errorThrown) {
console.log('Error in Operation');
}
});
});
</script>
<style>
php code
<?php
$data=$_GET['contranumber'];
?>