Browse Source

making sure post data works to new page

and yes I know I haven't done the rune block yet. shut up I'll do it when I want.
development
mauirixxx 8 years ago
parent
commit
2cb4053412
2 changed files with 7 additions and 1 deletions
  1. +5
    -0
      gw-insert.php
  2. +2
    -1
      gw-record.php

+ 5
- 0
gw-insert.php View File

@@ -0,0 +1,5 @@
<?php
$rare = $_POST['rare'];
echo 'If this worked then there will be a number here: ' . $rare . ' <BR /><BR />';
echo 'Return to <A HREF="gw-record.php">data recording</A> page';
?>

+ 2
- 1
gw-record.php View File

@@ -10,6 +10,7 @@ $whatdropped = mysqli_real_escape_string($con, $_POST['gwdrop']);
if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
}
echo '<FORM METHOD="POST" ACTION="gw-insert.php">';
echo 'At ';
$sqlmaplocation = "SELECT `location`, `wikilink` FROM `treasurelocation` WHERE `treasureid` = $location";
if (!$result = $con->query($sqlmaplocation)){
@@ -94,6 +95,6 @@ if ($whatdropped == "1"){
echo '<NOSCRIPT><INPUT TYPE="SUBMIT" VALUE="SUBMIT"></NOSCRIPT></FORM>';
}
echo ' and |code for gold dropped here| gold pieces';
echo ' <BR /><BR />';
echo ' <BR /><CENTER><INPUT TYPE="SUBMIT" VALUE="Click me!></FORM><BR />';
echo 'Reload the page with no GET data? <A HREF="gw-record.php">RELOAD</A>';
?>

Loading…
Cancel
Save