Answers for "how to show php variable in javascript alert"

PHP
1

alert a php variable

echo '<script type="text/javascript">alert("'.$error.'");</script>';
Posted by: Guest on August-12-2020
0

php echo alert js

echo '<script type="text/javascript">alert("Data has been submitted to ' . $to . '");</script>';
Posted by: Guest on January-29-2021

Code answers related to "how to show php variable in javascript alert"

Browse Popular Code Answers by Language