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.
Results 1 to 4 of 4

Thread: Form Question

  1. #1
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form Question

    If I wanted to create a form that would send or route someone to a webpage based upon their zip code input, what would be the easiest way to go about this? Is there a simple tool available to do this? I'm thinking of some type of plugin?

  • #2
    New Coder
    Join Date
    Nov 2009
    Location
    Phoenix
    Posts
    17
    Thanks
    1
    Thanked 1 Time in 1 Post
    A plugin will only work if you are using WordPress or some type of solution that allows plugins. A plugin does not work with a simple HTML form.

    I would use PHP code and route the user based upon the zip code they enter. You may need a database containing all of the zip codes if you plan to route the user to many different pages.

    If you can provide more details, someone will help point you in the right direction. We need to know what type of software you are using, how many different pages you plan to route a user to and what zip code criteria will determine where a user gets sent.

  • #3
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Use PHP for this. One way you can do it, is create a different webpage per zip code. So when they type in 29901 it goes like this

    index.php?zip=29901

    But it depends on what you want to do with it, what will be on the page, etc.
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    Do you have maybe a list of 20 or so zipcodes?
    And you already know what's supposed to happen when they enter them?


  •  

    Posting Permissions

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