www.webdeveloper.com
Results 1 to 3 of 3

Thread: Form Help

  1. #1
    Join Date
    Apr 2013
    Posts
    4

    Unhappy Form Help

    Well I am a definite newb, and really don't do any developing at all. I am using a website builder and adding in some random html and some basic javascript.

    What I need to do:
    I need to code a form that allows a user to input their zip code AND based on their zip code
    be re-directed to a page based on a region that contains those zip codes. I have simply created about 15 region pages that each account for about ~7 zip codes.

    If I have to use lengthy code I will.

    I don't know anything on PHP or MySQL, and am trying to get around using databases.

    Any help with this would be great!

  2. #2
    Join Date
    Mar 2012
    Posts
    1,639
    You will need to use PHP, but for a small amount of data like this you can avoid using a db by storing the zip codes in an array with one row for each region and 7 or so zip codes per row.

  3. #3
    Join Date
    Apr 2013
    Posts
    1
    You have multiple options. It would be good to know what limited technical background you do have in order to make the best recommendation for you.

    You can solve this with either PHP or Javascript though. It's basically just going to be one long IF/ELSE IF statement where you check the entered Zip Code against the region zip codes and then redirect the user for the corresponding region.

    Are you relatively comfortable with Javascript/JQuery, or do you think you might as well pick up some PHP really quick?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles