[eluser]deed02392[/eluser]
Hi guys, I've got a form that looks like this:
Code:
<input type="text" name="row[0][itemno]">
<input type="text" name="row[0][upc]">
<textarea name="row[0][description]"></textarea>
<textarea name="row[0][spec]"></textarea>
<input type="text" name="row[1][itemno]">
<input type="text" name="row[1][upc]">
<textarea name="row[1][description]"></textarea>
<textarea name="row[1][spec]"></textarea>
Users can increase the number of fields with an AJAX call which returns the HTML of additional form elements. The rule is that it 'grows' in size with the 'row' array's first dimension increasing contiguously.
I'm wondering how I can validate given this, as I don't see in the validation documentation it supports anything like a wildcard for arrays like this? But the main reason I'm asking is I wonder if there's a better alternative to this way of having multi dimension array anyway. Thanks! PS Sorry about the English.