In other hand, if you sent any character yet, you can use. IF (statement == TRUE) stay on this page, index.php ELSE echo "<script language=\"javascript\">window location=\"index2.php\";</script>"; ""AraDaen"" <aradaen@xxxxxxxxx> escreveu na mensagem news:4523fbae.59a29aea.7968.618f@xxxxxxxxxxxxxxx > If you have not sent any character till that moment, you can use: > > IF (statement == TRUE) > { stay on this page, index.php } > ELSE { > header("Location: index2.php"); > > > > > cya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php