<?php function LoginOnLoad(&$params) { // Put your code here. echo "Your message"; //********** Redirect to another page ************ header("Location: _blogs_list.php"); exit(); } ?>