Help with array
Posted: Sat Jul 14, 2007 9:50 am
Hello everyone
i have a page which lets the user choose from "select form list/menu" a number of fields that he will fill for example the user is
asked 'how many children you have?'
maybe he has 1 ,2,12 or 20 whatever he choosed the number from list/menu. after he choosed the number he goes to another
page with number of 'inputs text form' as he choosed before. now he will enter his children names i want to be sure he inserted
every name just one time no duplicated names but in the same thime i don't know how many input fields i have, every one has a
different number of children so i think it will be a good idea if i can put all names in an array and use array_unique then count the
two arrays if the numbers are different sure there is a duplicated names
if any one can help me to carry htis out or has a better idea i'll appreciate this thanks
i have a page which lets the user choose from "select form list/menu" a number of fields that he will fill for example the user is
asked 'how many children you have?'
maybe he has 1 ,2,12 or 20 whatever he choosed the number from list/menu. after he choosed the number he goes to another
page with number of 'inputs text form' as he choosed before. now he will enter his children names i want to be sure he inserted
every name just one time no duplicated names but in the same thime i don't know how many input fields i have, every one has a
different number of children so i think it will be a good idea if i can put all names in an array and use array_unique then count the
two arrays if the numbers are different sure there is a duplicated names
if any one can help me to carry htis out or has a better idea i'll appreciate this thanks