[eluser]megabyte[/eluser]
I am working wiht a form, it has an array of text fields called names[]
Is there anyway to create a custom callback that I cna use to access which field is empty?
like if there are five input fields created using a loop
Code:
<input name="names[<?=$key?>]" type="text" value="<?=set_value('answer_text['.$key.']')?>" />
and I want to check which one is empty, and then write an error message saying
"please note name 3 cannot be empty"
is there a way to do it?
thanks