Jelajahi Sumber

Added primitive ajax.php for testing

Foppe Hemminga 6 tahun lalu
induk
melakukan
c1dcfe3907
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      ajax.php

+ 2 - 2
ajax.php

@@ -1,7 +1,7 @@
 <?php
 
 if (is_ajax()) {
-	if (isset($_POST["venue"]) && !empty($_POST["venue"])) { //Checks if action value exists
+	if (isset($_GET["venue"]) && !empty($_GET["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 = $_POST;
+	$return = $_GET;
 
 	//Do what you need to do with the info. The following are some examples.
 	//if ($return["favorite_beverage"] == ""){