summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/htdocs/php/var2.php
blob: 028e46644e80dea8ce1dfad58210c3bf4a537276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
	switch ($_SERVER["REQUEST_METHOD"]) {
	case "GET":
		echo join(" ", array($_GET["v1"],
				     $_GET["v2"]));
		break;
	case "POST":
		echo join(" ", array($_POST["v1"],
				     $_POST["v2"]));
		break;
	default:
		echo "ERROR!";
	}
?>