Results 1 to 10 of 10

Thread: Adding a GoTo menu that the visitor fills in
      
   

  1. #1
    motoxxx is offline Major
    Join Date
    Dec 2005
    Posts
    343

    Default Adding a GoTo menu that the visitor fills in

    Is there some whay that I can add a Go menu (or something like one) that will allow the visitor to fill in their two letter state code (example WA, TN, TX , AZ etc).

    I have different areas of my sites that are designed for specific states and I really don't want to have a dropdown menu that has 50 choices in it. It would be better if the visitor could just type in their two letter state code and have it automatically take them to the proper section.....

    Naval????
    Bethers???
    Pablo???

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Adding a GoTo menu that the visitor fills in

    You need a form and a script for that. A simple form, with only one filed /state) and a submit button. The form action should be set to a redirect script. Look at this thread, particularly at post #10 : http://www.vodahost.com/vodatalk/for...orm-links.html


    Your pages should be saved as xy where xy are the two initials of the state.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  3. #3
    motoxxx is offline Major
    Join Date
    Dec 2005
    Posts
    343

    Default Re: Adding a GoTo menu that the visitor fills in

    Hmmmmmmmmmmmm OK.

    Gonna give this a shot.Thanks Naval!

  4. #4
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Adding a GoTo menu that the visitor fills in

    either way you go--- I see a lot of typing (or cut /paste /modify) in your future.LOL

    Andy
    PHP- is a blast!

  5. #5
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Adding a GoTo menu that the visitor fills in

    Hi, it’s only a curiosity thing. But do you deal with clients from outside the US?
    I am only thinking that many won’t have a clue what area the abbreviation is from.
    Only an idea! Maybe a small (image map) with the links to different areas of the states.

  6. #6
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Adding a GoTo menu that the visitor fills in

    Quote Originally Posted by Andy128
    either way you go--- I see a lot of typing (or cut /paste /modify) in your future.LOL

    Andy
    Why ?
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  7. #7
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Adding a GoTo menu that the visitor fills in

    50 states and 50 links comes to mind.

    Andy
    PHP- is a blast!

  8. #8
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Adding a GoTo menu that the visitor fills in

    Quote Originally Posted by Andy128
    50 states and 50 links comes to mind.

    Andy
    The script and form require no effort at all.

    The links are automatically built by the script, which is only a few lines. The form, as motoxx wants it, will only contain a text field, let's call it "state", limited to two chrs, and a submit button. The visitor fills in the state initials, so there is no typing. The form submits to the, let's call it, "state.php" script.
    If one wants a dropdown with the states, it can be easily imported from any of the existing forms on the web. For example, you can import it from here.
    simply using BV's import html tool.

    The script itself is:

    <?php
    $state= $_POST['state'];
    $link = $state;
    if(file_exists($link))
    {
    header("Location: $link");

    }
    header("Location: nostate.html");
    ?>

    where "nostate.html" is a very simple page that informs the visitor if there is no product (or company or service) related to that state. This way you avoid the script linking to a state page that doesn't exist.

    The pages for every state should be like LA.html, FL.html because that's how mottoxx wants the visitor to fill in the form.

    The only actual work is building the pages themselves.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  9. #9
    motoxxx is offline Major
    Join Date
    Dec 2005
    Posts
    343

    Default Re: Adding a GoTo menu that the visitor fills in

    The only insurance and such that I do outside of the US is Travel insurance. My target market is pretty much all US based unless someone is looking for travel coverage from outside of the US.

    Naval, here is a bit of a dilema about the magnificent thing you have come up with...

    Part of my SEO that works very well for me is how I have the state specific pages named. If I name each page the same as the two letter abbreviation I am going to lose this. Example, If I am selling health insurance in Florida, the page name would be domainname.com/floridahealth.html
    The SEs look into the longer tail search terms of my pages and I get a bunch of business because of this.

    I am not affraid to place 50 links on the site or maybe have a bit of code that looks into a folder on the FTP and tells the state abbreviation where to go.

    I am totally new at HTML and I know this isn't anywhere near correct but maybe you'll get my meaning....some thing sort of like this.

    if " "="FL" redirect to http://www.domainname.com/floridahealth.html
    if " "="GA" redirect to http://www.domainname.com/georgiahealth.html

    Can these links possibly sit in some sort of a folder on the FTP or can they just sit in the page html?

  10. #10
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Adding a GoTo menu that the visitor fills in

    You can use a dropdown menu, with the full names of the states, or else create in the script, an array, where the keys are the state initials, and the values are the links, or even simply the full state name. In the first case the link is already in the array, in the second, it is created as in the previous post, with a concatenation of the state name and the word "health"
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

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

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49