Skip to content

Instantly share code, notes, and snippets.

View vuthaihoc's full-sized avatar
🤒
ke ke ặc ặc

Stupid Dev vuthaihoc

🤒
ke ke ặc ặc
View GitHub Profile
@vuthaihoc
vuthaihoc / trainee005_06.php
Created June 2, 2016 07:08
Bài 6 của HoanNC
<?php
header('Content-Type: text/html; charset=utf-8');
$value1 = isset($_POST['value1']) ? $_POST['value1'] : '';
$value2 = isset($_POST['value2']) ? $_POST['value2'] : '';
$result = 0;
$msg = "";
if(isset($_POST)){
if(is_numeric($value1) && is_numeric($value2)){
if(isset($_POST['add'])){
$result = $value1 + $value2;