Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6711123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:06:08+00:00 2026-05-26T08:06:08+00:00

What I want to do is have an HTML drop down for example: <option

  • 0

What I want to do is have an HTML drop down for example:

<option value="">Select Tire Brand</option>
<option value="cooper">Cooper</option>
<option value="michelin">Michelin</option>

And when they click the Submit button, I want it to go to http://www.domain.com/{selection}/

so if they selected Cooper it would go to http://www.domain.com/cooper/.

I would use the GET method and have it go to the main URL which is brand_results.php?brand=cooper but then the URL wouldn’t show up as the neat URL which I use htaccess for.

Is there a way to do what I am looking for?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:06:08+00:00Added an answer on May 26, 2026 at 8:06 am

    I am assuming the value of name for your <select> is mySelect below.

    After submission:

    <?php
        if(empty($_POST['mySelect'])) {
            // User did not select a brand
        }
        header('Location: http://www.domain.com/' . urlencode($_POST['mySelect']));
        exit();
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Html drop down. i want to mark 11:00 pm as selected using
I have a basic html select: <select> <option value=1>Apple</option> <option value=2>Banana</option> <option value=3>Grape</option> </option>
I have a drop down menu, with two options: <select name="chs" value="" id =
I have a HTML form with a drop down list. I want to get
I have 3 HTML combo/drop down boxes. All of them have a distinct name
Ok I have a drop down of countries and only want to display USA
My problem is: I have a drop down menu and i want that when
I have an html table of data with a drop down box in each
So I have Html like this http://trac.edgewall.org/wiki/RecentChanges (I want to create some Flash Track
I have this HTML structure and want to convert it to an accordion. <div

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.