Is there away to alert this variable without using ajax? need guide, trying todo this in one page heres my code.
<?php
if($totalActive == 10 OR $totalActive < 10){
echo "<input id='activo' type='hidden' value='$totalActive'>";
?>
<script type="text/javascript">
var tom = $("#activo").val();
alert("Your Credit Balance will expires in "+ tom +"days
Please buy more credits to extend the expire date");
window.location.href = "Outbox.php";
</script>
<?php
}//continue php scripts
im trying to alert how many days left, does the user have before its credit balance expires, i think you cant combine php with jquery, but is there away to do this?