From 50e21fe8baa00a7de5bf2afc72c5dfadfdc4e56f Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Sun, 21 May 2017 21:59:31 -1000 Subject: [PATCH] starting to grab section specific POST data --- gw-insert.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/gw-insert.php b/gw-insert.php index 7794dcd..70bd243 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -1,12 +1,21 @@ '; +if ($droptype == 1){ + $rarity = mysqli_real_escape_string($con, $_POST['rare']); + echo 'a '. $rarity . ' drop was a weapon!
'; +} else if ($droptype == 2){ + echo 'drop was a rare material!
'; +} else if ($droptype == 3){ + echo 'drop was a rune!
'; +} else { + echo 'No data was sent!
'; +} +# all of the below will go away soon echo 'The locid variable is set to ' . $locid . '
'; echo 'The amount of gold dropped was ' . $gold . '
'; echo '
Return to data recording page';