PHP isset variable than jquery and javascript should work -
i want know if php variable not exists, want execute javascript.
for example-
<?php if(!isset($_request['myvar'])){ ?> <script> alert('variable not exist'); </script> <?php } ?>
is right way use javascript code in php extension file
do , work:
if (!isset($_request['myvar'])) { echo "<script>alert('variable not exist');</script>"; }
Comments
Post a Comment