How can I javascript alert my php error messages? Here is my code:
<?php echo showmessage($msg)?>
I want to make it into an alert, how can I do that?
How can I javascript alert my php error messages? Here is my code:
<?php echo showmessage($msg)?>
I want to make it into an alert, how can I do that?
?>
<script type="text/javascript">
alert("The error is <?php echo $msg ?>");
history.back();
</script>
<?php
Or
echo '<script language="javascript">';
echo 'alert(Message here)';
echo '</script>';
alert("The error is I am going to break " because I am mean");