Ok I am confused on how to transfer the data from the form to the $Smith area. I keep getting " with " instead of "$Oreused with $Weaponused". So what is wrong? I have not tried transferring data with the <option> tag yet. Help please =)
<?php
[...]
$Smith=$_POST[Smith];
if($Smith){
$Oreused=$_POST['oreused'];
$Weaponused=$_POST['weaponused'];
if($Item['Name']=="Hammer" AND $Item['Equipped']=="yes"){
print "$Oreused <br>with<br> $Weaponused";
}else{
print "You must Equip/buy a hammer before you can Smith.";
}
}else{
print "<u><i><b>Smithery</b></i></u><br>";
print "(Here you can put Ores and Items together to make the items better.)";
print "<br><br><hr><br>";
print "<form method=\"POST\" action=\"smithery.php\">";
print "Use(Ore):<br>";
print "(Name, +Strength, +Constitution, +Dexterity, +Intelligence, +Concentration)<br>";
print "<select>";//Ores
$Orequery2=mysql_query("SELECT * FROM ores WHERE Owner='$Player'") or die("Could not get ores 101");
while($Ores=mysql_fetch_array($Orequery2))
{
print "<option value=\"oreused\">$Ores[Name] - +$Ores[Strength] +$Ores[Constitution] +$Ores[Dexterity] +$Ores[Intelligence] +$Ores[Concentration]</option>";
}
print "</select><br><br>";//end ores
print "With(Weapon):<br>";
print "Armour/weapons must be equipped to be used here!<br>";
print "(Name, +Strength, +Constitution, +Dexterity, +Intelligence, +Concentration)<br>";
print "<select>";//Weapons
$itemquery2=mysql_query("SELECT * FROM Items WHERE Owner='$Player' AND Equipped='yes'") or die("Could not get Items");
while($Items=mysql_fetch_array($itemquery2))
{
print "<option name=\"weaponused\">$Items[Name] - +$Items[Strength] +$Items[Constitution] +$Items[Dexterity] +$Items[Intelligence] +$Items[Concentration]</option>";
}
print "</select><br><br>";//weapons
print "<input type=\"submit\" name=\"Smith\" value=\"Smith\"></form>";
}
?>