php - If a condition is true in back end page, then show me dialogue box into front end page -
i tried best output of code, unfortunately did't output. want display dialogue box page.
<?php     echo '<srcipt type="text/javascript">';     echo 'alert("your input value invalid");';     echo '</srcipt>'; ?>      
though given in comment guess op still can't able it, make end,
here's answer
you have typo in srcipt instead of script
just change inside code, work fine
<?php     echo '<script type="text/javascript">';     echo 'alert("your input value invalid");';     echo '</script>'; ?>   and recommend in single line instead of having 3 echo
<?php     echo '<script type="text/javascript">alert("your input value invalid");</script>'; ?>      
Comments
Post a Comment