Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Regular Coder LearningCoder's Avatar
    Join Date
    Jan 2011
    Location
    The Pleiades
    Posts
    924
    Thanks
    76
    Thanked 29 Times in 29 Posts
    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.

    Regards,

    Lc.
    Last edited by LearningCoder; 11-16-2012 at 02:29 AM.

  2. #17
    Regular Coder Arcticwarrio's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    727
    Thanks
    20
    Thanked 85 Times in 85 Posts
    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
    There are 10 types of people on CodingForums,
    Those who understand Binary and those who dont.
    Get Cloud Hosting now from only£59 / month

  3. Users who have thanked Arcticwarrio for this post:

    LearningCoder (11-16-2012)

  4. #18
    Regular Coder LearningCoder's Avatar
    Join Date
    Jan 2011
    Location
    The Pleiades
    Posts
    924
    Thanks
    76
    Thanked 29 Times in 29 Posts
    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.

    Regards,

    LC.
    Last edited by LearningCoder; 11-16-2012 at 12:06 PM.


 
Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •