Welcome Guest, Not a member yet? Register   Sign In
Combining multiple input boxes
#1

[eluser]JamieBarton[/eluser]
Hi guys,

I have a form that I want to process when submitted that inserts into a database.

Basically, it's to record scores.

There will always be Gold, Silver and Bronze. However, as there could be up to 10-20 players, and the games being played by children we don't want any of them to go away sad, so we want to be able to input any type of award name, eg; 'Best looking robot', 'Scariest looking robot'.

Have a look at the form: http://grab.by/2W2v

I understand when the form is submitted it will look through each of the inputs but combine

In the past, when I have just used one input i have used n'ame="email[0]"'.

However, since there are 3 input boxes (4 really - 1 hidden would be the 'award name' for the first three and an input for the rest..).

But how do I group each row of input boxes?

Everything will be stored in the same table, I'll just NULL the total score/events played for the custom inputs, as no scores will be given to those, but visual awards.

Any help would be appreciated.




Theme © iAndrew 2016 - Forum software by © MyBB