Jump to content

HELP with Duplication of fields please


wmoussalli

Recommended Posts

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 stats

What 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 page


Imagining 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

SUBMIT

Does anyone have any ideas, help would b much appreciated...
Thanking you for your time

Wayne

Below 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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.