I have a session variable email=$_GET['email'];
, i want to execute a ajax function when this varaible is available and do no action when the variable is not available.
How to call a ajax function when the variable is available?
I have a session variable email=$_GET['email'];
, i want to execute a ajax function when this varaible is available and do no action when the variable is not available.
How to call a ajax function when the variable is available?
You can use:
<?php if(isset($_GET['email']) && $_GET['email'] !='') {?>
<script>
// your ajax function comes here
</script>
<?php } ?>