Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Drop Down Menu


2 replies to this topic

#1 immortalviruz

    Newbie

  • Kontributors
  • Pip
  • 1 posts

Posted 15 April 2011 - 12:21 PM

hey

I'm new at the forum here and kinda need some help with a drop down menu for my website.
there shall be 2 boxes where in the first one you can choose your Zipcode and then a box below to choose the city you are living in.
so when you choose your zipcode(bar 1) the citys withce are under the selected zip code will appear in bar 2

________________________
_first bar with the zip codes_
________________________
_second bar with the citys__

i'm going to make this for a company(an internet provider) and they have at least 52 zip codes and 130 citys and some of them are getting special prices.


just to make it easier for the customers to find there town/city

at the moment i have made this.


postcode
<FORM NAME="nav"><DIV>
<SELECT NAME="SelectURL" onChange=
"document.location.href=
document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value">
<OPTION VALUE="C:\Users\ViruZ\Desktop\HTML TRAIL"
SELECTED>Please select your zipcode:
<OPTION VALUE="link the the prices.html">
the zip code
</SELECT><DIV>
</FORM>

first time working with html and I'm not sure if it can be made be that only, and i was thinking i could get some help with that for some one in here.

and i'm not sure if i'm posting this under the right subject

let me know if it's not understandable^^

^^thanks for the help^^

#2 web_designer

    "french rose sparkle under moonlight"...do you believe in the magic of moonlight??!!...

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,385 posts
  • Gender:Female
  • Location:US, CA
  • Interests:internet and the web
    reading books
    sport
    watching tv series
    drawings and art
  • myCENT:12.10
  • Spam Patrol

Posted 05 May 2011 - 02:31 AM

well since you want the both boxes are connected, i mean the zip box with the city box in a way that when you choose the zip the city that is related to it will appear. then definitely you will need a php script too not only an html script. also you should have two tables in a database one for zip and the other to the city to save the values in.

and in anyway, i was talking about how to make that in php and it seems you are using java scipt. so maybe you should post in the java script section. and i am sorry i am not that pro in java script, so post there maybe you will get the answer you are looking for.

#3 ramankumar

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 36 posts
  • Gender:Male

Posted 16 August 2011 - 12:23 PM

thanks for sharing the useful information.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users