xxxxxxxxxx
if ($_SERVER['REQUEST_METHOD'] == 'POST')
xxxxxxxxxx
//<form method="post">
//<input type="submit" name="treasure" value="go!">
//</form>
if (isset($_POST['treasure'])){
echo "treasure will be set if the form has been submitted (to TRUE, I believe)";
}