I'm trying to open a web page based on zip code.

Discussion in 'Programming' started by Data58, Jul 19, 2007.

  1. #1
    I am trying to direct people to a web page based on zipcode (or group of zipcodes) and a default page if theres is not listed. Im using an access database.
    I know You ask for a zip code. You check your database. You direct the user to the appropriate page. I'm new at coding in coldfusion. Can anyone help?
     
    Data58, Jul 19, 2007 IP
  2. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hello Data58,

    Give it a shot and post what you have. We'll take it from there.

    The idea is to teach you how to fish. We would all love to help but we ALL know it is better not to feed you (you'll just get hungry again) but rather to teach.

    Looking forward to your next post

    daTropics
     
    datropics, Jul 22, 2007 IP
  3. disco_danny

    disco_danny Peon

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Data58,
    If you want to go to a new page in coldfusion based on zip code you can use cflocation within if statements that are checking the zip code entered. The syntax is cflocation url="something.cfm".

    If you just want to change to content on within your current page, post back to the page and use cftemplate within your if statement. This will call the code within your template and add it to your existing code. This would be cfinclude template="something.cfm".
     
    disco_danny, Jul 30, 2007 IP