Jump to content

Not posting?


EmuX

Recommended Posts

This page will not post my text:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Mikes - SQL Generator</title>
</head>

<body>
<?
$war = array(1,2,3,4,5,6,7,8,44,56);
$pally = array(9,10,45,50);
$hunter = array(11,12,15,16,17,46,51);
$rogue = array(18,19,20,21,22,23,24,52);
$priest = array(25,26,27,28,29,47,53);
$shammy = array(30,31,32,48);
$mage = array(34,35,36,37,49,54);
$lock = array(38,39,40,41,55);
$druid = array(42,43);
$all = array_merge($war, $pally, $hunter, $rogue, $priest, $shammy, $mage, $lock, $druid);

$hum = array(1);
$orc = array(2);
$dwf = array(3);
$nef = array(4);
$und = array(5);
$trn = array(6);
$gme = array(7);
$trl = array(;
$alll = array_merge($hum, $orc, $dwf, $nef, $und, $trn, $gme, $trl);
?>

<form action="php.php" method="post" enctype="multipart/form-data" name="form">
<input name="hid" type="hidden" value="hid" />
Class: <select name="class" size="1">
	<option value="war">Warrior</option>
	<option value="pally">Paladin</option>
	<option value="hunter">Hunter</option>
	<option value="rogue">Rogue</option>
	<option value="priest">Priest</option>
	<option value="shammy">Shaman</option>
	<option value="mage">Mage</option>
	<option value="lock">Warlock</option>
	<option value="druid">Druid</option>
	<option value="all">All</option>
</select><br /><br />
		Race: <select name="race" size="1">
	<option value="hum">Human</option>
	<option value="orc">Orc</option>
	<option value="dwf">Dwarf</option>
	<option value="nef">Night Elf</option>
	<option value="und">Undead</option>
	<option value="trn">Tauren</option>
	<option value="gme">Gnome</option>
	<option value="trl">Troll</option>
	<option value="alll">All</option>
</select><br /><br />
Item ID: <input name="item" type="text" value=""  /><br /><br />
Quantity: <input name="quantity" type="text" value="" /><br /><br />
<input name="Submit" type="submit" value="Submit" /><br /><br /><br /><br />
<?
if($_POST['hid'] != '') {
	$vclass = $_POST['class'];
	$vc = $$vclass;
	$outp = '';
	for($i=0;$i<=sizeof($vc)-1;$i++) {
		$outp .= "INSERT INTO playercreateinfo_item VALUES ('" . $vc[$i] . "', '" . $_POST['item'] . "', '" . $_POST['slot'] . "', '" . $_POST['quantity'] . "');\n";
	}
	echo <textarea name="output" cols="130" rows="20"> . $outp . '</textarea>';
}
?>
</form>
</body>
</html>

 

Link to comment
https://forums.phpfreaks.com/topic/189262-not-posting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.