Here is what I have so far. [url removed, login to view] (file is also attached)
The point of it is.. When we are working accounts we have a ICA line (Internal consultant agent) that we can get support from. When we call them, we have to give them some information for them to pull up the account. This is time consuming depending on what we provide them because at times there are multiple accounts and takes a min + just to pull up the account we are looking at.
I made this so far which will allow the ICA to pull up the account by entering the 4 digit pin provided by an agent.
That part of the script I will be able to do myself.
Where I need help is as follows. When they enter the 4 digit pin right now, it tabs over to the next field like it should. After you enter the 4th number, I need it to make sure that all fields are filled in, numeric only and then it submits the form.
Its going to query the database and look for that 4 digit pin and it will grab the 19 digit account number from it.
There is a settings tab on the script where you can choose which pages you want to load when you enter the account pin. When the form is submitted, if the pin was valid I need it to launch those pages appending the account number to them.
I currently set it up to use 4 different cookies to handle the settings but if its possible to get it down to one it would be awesome.
If you can make an error as well in there if the account doesn't exist in the database it would be great as well.
So in short, Makes sure all the fields are numeric, filled in and then posts the form. If you could just get the form to post to a php page with the pin entered I could even do the rest with the launching of the pages etc. Its just the validation of the fields and form submission im stuck on. Of course my code is probably horrific to look at so if you can make it any cleaner that would be great.
Thanks so much for any and all help!