From 0f18a9921394dc42ef7acf41a6f87d342a28d022 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 16 Sep 2014 11:24:13 +0200 Subject: [PATCH] Time to POST it Moved away from sending data in GET request and now using POST requests. --- c.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/c.php b/c.php index 3cd5ed6..248eb25 100644 --- a/c.php +++ b/c.php @@ -176,23 +176,24 @@ } } - $action = $_GET['a']; + $action = $_POST['a']; $server = 'localhost'; - $user = $_GET['u']; - $password = $_GET['p']; + $user = $_POST['u']; + $password = $_POST['p']; - $database = $_GET['d']; - $table = $_GET['t']; - $start = $_GET['s']; - $limit = $_GET['l']; - $query = $_GET['q']; - $header = $_GET['h']; - $values = $_GET['v']; - $oldValues = $_GET['o']; + $database = $_POST['d']; + $table = $_POST['t']; + $start = $_POST['s']; + $limit = $_POST['l']; + $query = $_POST['q']; + $header = $_POST['h']; + $values = $_POST['v']; + $oldValues = $_POST['o']; if(($user == null) || ($password == null) || ($action == null)) die('Nope'); + $con = new connector($user, $password, $server);