Couldn't you just echo the Javascript Alert out instead of closing the PHP tag?

Sent from my iPhone

On May 20, 2010, at 3:35 AM, imran shafiq <jibreel_a...@yahoo.com> wrote:

hi experts

if a alert use before header() use in a function like this:

e.g.

function goto_page()

{

        if(.............)

          {

           ....................
           <? alert("Error:............"); <?php

           header("abc.php");

           }

} 

alert not execute. why?

Imran Shafiq Khan

[Non-text portions of this message have been removed]





      

[Non-text portions of this message have been removed]

Reply via email to