hello all…
i am creating some input text fields with DOM..
and i pass them into a .php file..
that the user is able to create and delete on the fly as many elements as he want…the problem is how to pass the value in php file…
if i put the name as:name=fields_name[+num+]
the user may create for example 5 fields…but by creating and deleting the fields my fields_name[] table possibly will come in this situation…
first field:name=fields_name[4]
second field:name=fields_name[9]
third field:name=fields_name[10]
fourth field:name=fields_name[15]
fifth field:name=fields_name[17],
but i want to pass in php the correct order…
first field:name=fields_name[1]
second field:name=fields_name[2]
third field:name=fields_name[3]
fourth field:name=fields_name[4]
fifth field:name=fields_name[5]
i am very sorry for my english but it is very hard for me to explain..
which is the best way to do it???