This is a hard question, but I can't think of anyway to do this. I have a game as part of my website/forum I use. The people there aren't very helpful lol, but they have areas they must travel in order to get from point A to point B. Example is using a GO button (Submit) to travel Up, one for Down...ect. It does call information from my database in order to make them get to point B. When clicking GO, they are taken to a page that tells them whether it was a success, or they got caught, or they found something special. On that page, if successful or not, they have to click a link to REFRESH the page and return to the map. What I wanna do is totally get rid of this process. If on a failed move, it will take them to the right page, but when successful, I'd like to SKIP the entire page that says it was and have the main file refresh to their current location....to avoid clicks. I have the .php file and the template of the page..but nothing in the template would alter that. How can I make the page, on a successful move, just refresh in itself and they are in the right area without any extra clicks?
This is the PHP area, and where I think it's telling it to go to the success page;
//Update character area
$sql = " UPDATE " . TRAVEL_CHARACTERS_TABLE . "
SET character_area = '$destination_id'
WHERE character_id = '$user_id' ";
if( !($result = $db->sql_query($sql)) )
message_die(GENERAL_ERROR, 'Could not update character area', '', __LINE__, __FILE__, $sql);
travel_previous( Travel_area_change_success , travel_area , '' );
break;
}
}
The Travel_area_change_success is the language key that loads on the page I want to just get rid of saying...You changed areas successfully. And the travel_area is my .php file which under the success will say...CLICK here to return to previous page.