Need Zip Code Validation. Calling Proper Variable from ....

Discussion in 'HTML & Website Design' started by freakadmins, Jun 11, 2012.

  1. #1
    Hello People,

    I am newbie in HTML and I need your little help to complete my website. I have created a website in HTML Format. I also created a section where I made a place for Enter your zip. I have created 5 cities seperate pages. I just want that whenever person put particular Zip code(Number) that city page should appear. Means User should go to that page.

    E.g. If customer put 92806 and click Search - He have to land on Specified created page i.e. Anaheim, likewise if he puts something else like 92807 he should land on different city page which is already present or created. Is there anyway to do this? Please help me. want to do this only for 8 cities.

    Thanks in advance.
     
    freakadmins, Jun 11, 2012 IP
  2. kyferez

    kyferez Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes. But it involves coding. Easiest would be PHP...
     
    kyferez, Jun 12, 2012 IP
  3. freakadmins

    freakadmins Greenhorn

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Thanks Kyferez... atleast one person replied..

    Yea I know that PHP would be much easier.. with database handling... But I read somewhere that its possible with HTML too... But I m not getting the code.. and script..
     
    freakadmins, Jun 14, 2012 IP
  4. kyferez

    kyferez Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The only way I know of to do it in html only would require using javascript. Basically call a javascript function that would change the action tag of the form element to point to a different page depending on the zip code. It still requires coding javascript...
     
    kyferez, Jun 14, 2012 IP
  5. freakadmins

    freakadmins Greenhorn

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    Thanks kyferez

    I am newbie in Javascript coding. So if you paste some piece of JS code here it will be very much helpful for me.
     
    freakadmins, Jun 21, 2012 IP