wmoussalli Posted May 7, 2006 Share Posted May 7, 2006 Hello there, I have been playing around with php for a while now yet i always get stuck with one aspect of code.example used is clan website where am looking to add players statsWhat i am trying to do is add stats for players on same team, i know how to add the stats on individual basis (1 at time then click an another) but i want to display on same pageImagining that GAMETAG KILLS DEATHS are all textbox's(1st player) GAMETAG KILLS DEATHS(2nd player) GAMETAG KILLS DEATHS(3rd player) GAMETAG KILLS DEATHS(4th player) GAMETAG KILLS DEATHS SUBMITDoes anyone have any ideas, help would b much appreciated...Thanking you for your timeWayneBelow is ruffly what am looking for... while ($numberofplayers > '0') { echo"<tr> <td height=\"26\"><input type=text name=\"gametag[$numberofplayers]\" size=30></td> <td><input type=text name=\"kills[$numberofplayers\" size=5></td> <td><input type=text name=\"deaths[$numberofplayers]\"size=5></td> </tr>"; $players--; } Link to comment https://forums.phpfreaks.com/topic/9240-help-with-duplication-of-fields-please/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.