how to use alert in php and js combined
Posted
by user295189
on Stack Overflow
See other posts from Stack Overflow
or by user295189
Published on 2010-06-16T23:47:07Z
Indexed on
2010/06/16
23:52 UTC
Read the original article
Hit count: 200
php
|JavaScript
have a need to alert through php,
I have the code below. Problem is that it works as long as I dont use header redirect. But as soon as I use it..I loose alert.
echo "I will do some functions here in php";
if($value == 1){
alert('ok working');
}
header(location: 'someOtherpagethanthis.php');
© Stack Overflow or respective owner