how to use alert in php and js combined
<p>have a need to alert through php,<br>
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.</p>

<pre><code>echo "I will do some functions here in php";  
if($value == 1){  
alert('ok working');  
}  
header(location: 'someOtherpagethanthis.php');  
</code></pre>
