aboutsummaryrefslogtreecommitdiff
path: root/Web design/PHP/Test/calc.php
diff options
context:
space:
mode:
Diffstat (limited to 'Web design/PHP/Test/calc.php')
-rw-r--r--Web design/PHP/Test/calc.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/Web design/PHP/Test/calc.php b/Web design/PHP/Test/calc.php
new file mode 100644
index 0000000..c2728d9
--- /dev/null
+++ b/Web design/PHP/Test/calc.php
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="" dir="ltr">
+ <head>
+ <meta charset="utf-8">
+ <title></title>
+ </head>
+ <body>
+ <?php
+ if ($_POST["one"]) {
+ echo 1;
+ }
+ elseif ($_POST["two"]) {
+ echo 2;
+ }
+ ?>
+ </body>
+</html>