瀏覽代碼

Added primitive ajax.php for testing

Foppe Hemminga 6 年之前
父節點
當前提交
2e7529458f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ajax.php

+ 2 - 2
ajax.php

@@ -1,7 +1,7 @@
 <?php
 
 if (is_ajax()) {
-	if (isset($_GET["venue"]) && !empty($_GET["venue"])) { //Checks if action value exists
+	if (isset($_POST["venue"]) && !empty($_POST["venue"])) { //Checks if action value exists
 		// $action = $_POST["action"];
 		// switch ($action) { //Switch case for value of action
 		//	case "test":
@@ -19,7 +19,7 @@ function is_ajax()
 
 function test_function()
 {
-	$return = $_GET;
+	$return = $_POST;
 
 	//Do what you need to do with the info. The following are some examples.
 	//if ($return["favorite_beverage"] == ""){