I got this code and well i need to get out the names of every submit button and every textbox name so i can say if button(1) pressed then take info from textbox (1) and put into database. I have no idé on how to make this
If u submit any code please coment around it so i understand (im learning php)
Thanks in advance to everyone =)
Code: Select all
<table border="1">
<tr>
<th>Units</th>
<th>AtkArm</th>
<th>Buyfor</th>
<th>Sellfor</th>
<th>You Own</th>
<th>Buy</th>
</tr>
<?php while ($row1 = mysql_fetch_assoc($result1)): ?>
<tr>
<th><?php echo $row1['Units'] ;?></th>
<th><?php echo $row1['AtkHp'] ;?></th>
<th><?php echo $row1['Buyfor'] ;?></th>
<th><?php echo $row1['Sellfor'] ;?></th>
<th><?php echo $my['swordmen'] ?></th> <--- this needs to be 3 diffrent datatables (swordmen, macemen, pikemen---|
<th>
<font color="black" valign= "top"><input style='width:45;height:20' type="text" name="input ITD1" size="250" class="textbox" value=""></font>
<input style='width:45;height:30;font-weight:bold' name="submit" type="submit" class="submit" value="Buy!">
</th>
</tr>
<?php endwhile; ?>
</table>