Shouldn't you be closing the php content before the alert ?> instead of <?
?

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