Possible Duplicate:
Cannot modify header information - headers already sent, Why its happening
Hi I am new with php and I was hoping you could help. I hav a function that uses the javascript alert:
Function promptuser($msg)
{
echo "<script type='text/
javascript'>
alert('$msg');
</script>";
}
Şimdi 'prompt.php' adlı bir dosya altında bu fonksiyonu kaydettiniz.
Şimdi benim ana sayfa:
Require ("prompt.php");
promptuser("you are in");
Header("location: index.php");
Exit;
Hata alıyorum:
"cannot modify header information - headers already sent...".
Please help Thanx