if (($_POST['type'] == "showTimestamp")) { $showTimeStamp = "Timestamp is: ".mktime($hours,$minutes,0,$month,$day,$year); $showDate = ""; } if ($_POST['type'] == "showdate") { $showDate = $_POST['timestamp']; $showDate = "Date value of timestamp is: ".date("r", $showDate); $showTimeStamp = ""; } ?>