Explorar el Código

getting gold info

trying to restrict text input to numbers only, need an html 5 compliant web browser supposedly
development
mauirixxx hace 8 años
padre
commit
8467ea6aff
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      gw-record.php

+ 3
- 3
gw-record.php Ver fichero

@@ -3,9 +3,9 @@
include_once 'gw-connect.php';
$con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
#$toonid = mysqli_real_escape_string($con, $_POST['playerid']); //enable this after character selection is working
$toonid = 'Chrissi Chan';
$toonid = 'Chrissi Chan'; //delete this line after character selection is finished/working
#$location = mysqli_real_escape_string($con, $_POST['locationid']); //enable this after location selection is working
$location = 4;
$location = 4; //delete this line after location selection is finished/working
$whatdropped = mysqli_real_escape_string($con, $_POST['gwdrop']);
if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
@@ -72,7 +72,7 @@ if ($whatdropped == "1"){
echo '<OPTION VALUE="' . $typeid . '">' . $weapon . '</OPTION>';
}
echo '</SELECT>';
echo ' and |code for gold dropped here| gold pieces.';
echo ' and <INPUT TYPE="NUMBER" NAME="droppedgold" MAXLENGTH="4"> gold pieces.';
echo '<INPUT TYPE="HIDDEN" NAME="droptype" VALUE="1"><INPUT TYPE="HIDDEN" NAME="location" VALUE="' . $locid .'">';
echo ' <BR /><CENTER><INPUT TYPE="SUBMIT" VALUE="Click me!"></FORM></CENTER><BR />';
} else if ($whatdropped == "2"){


Cargando…
Cancelar
Guardar