Let me explain.
If my page move.php has a function called like
checkmove($tid, $team_id);
Which checks to see if enemy exist on territory.
common.php has this function that ends like this.
//Look for enemy teams that may be on territory
$sql = "SELECT * FROM " . $prefix . "_tc_teams WHERE tid ='$tid' AND div_id != '$div_id'";
$result = $db->sql_query($sql);
$enemy = FALSE;
if ($db->sql_numrows($result) > 0) {
$enemy = TRUE; //Enemy exist on territory
If enemy = TRUE, I don't want to return $enemy to the move.php page but to redirect to attack.php page then what would be the best way to do this.
My usual redirect written like
Header("Location: modules.php?name=whatever&file=attack");
...wont send the arguments, $tid, $team_id.