if(isset($_POST['submit']){ //Your Code Here }
//<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)"; }