I'm using this script to write news to a text file. When the news has been sent I'm seeing this message: "News added!". I would like the script to open index.php instead of writing this message. I need to change echo"News added!"; but don't know what function to use. Here's the code:
PHP Code:fopen("news.txt", "a+");
if($action == add){
$fp = fopen("news.txt", "a+");
$data = "$title - $news \n";
fputs($fp, $data);
fclose($fp);
echo"News added!";





Bookmarks