You know I was thinking to check it against one of my pre determined values and was going to use in_array() to search for the value. I read somewhere that if there's a select box in a form and it gets submitted, you receive the value as an array? Did some var_dump()ing and it showed up as a string so I'm not sure how true that was. I have already created an array in a script dealing with my products page so I wonder if I can use that value in this script or whether or not to just create another one.
EDIT: just found it. inside the same file. moved it about and its got global scope now.
Thanks for the tip.
Also just to throw a spanner into the works, i live in St Helens Merseyside and phone numbers in town are only 10 digits long.
ie 01744 20022
Hmm I knew I shouldn't have gone off Wikipedia :@
That's one mighty spanner, I'll do a bit more research then re-write the code relating to that.
Thanks for the info !
Edit: Ok it seems that if you enter the full length code (which you would have to do to ring nationwide for example for me to ring London would mean I have to enter 0207 or 0208 or any other code) then the possibilities range from either 10 or 11. I think I know how to deal with this.