First I would like to say that I am sorry for my poor topic title, however it is kind of hard to explain what I need help with.
Recently I decided that I was going to make a settings wizard for the popular online ftp client, net2ftp. I was finding that many people who wanted to install net2ftp on their own server were having problems editing the .php files with the correct settings, causing it not to work. So, I had the idea of using a HTML page to type in the settings then generating the settings file based on their input.
However, since the user is able to choose any number of for example allowed/banned ftp servers a dynamically generated form was needed. With a little bit of help, I cooked up a way of using an 'Add Anouther' button to add a new input.
However the way that I did it is quite different from the ways that are normally used. I have all of the forms named the same (eg <input type="text" name="allowed_ftpservers" />. The  at the end creates an array, which my server side script is able to work with.
Take a look at the site for a better explanation. http://www.dcrez.co.uk/create/links/settings-auth.htm
However this does cause problems for data validation on the client side, while my server side script does trip out the empty values, problems can still happen. For the allowed ftp_servers someone can type in 'ALL' as well as an FTP server and it will accept them. On the last input, if only one of the two fields are filled in then there will be either one more username than there is a root directory or the other wayround which can cause problems. I would also like to regxp the values before submitting, as it is normally faster.
However, none of my normal data validation seems to work, as it is something to do with the array. Could anyone tell me how I would be able to client side data validation?
I am sorry for my bad english and poor explanation, but take a look at the site and you will see what I mean. Thank you for any help that you can give me.