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

  • Home
  • SEARCH
  • 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 6773591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:41:11+00:00 2026-05-26T15:41:11+00:00

I am try to redirect the page depending on whether the users selects ‘standard’

  • 0

I am try to redirect the page depending on whether the users selects ‘standard’ or ‘maintenance’ in a drop down menu. Hoewever my javascript isn’t quite working. Can you help point me where I’m going wrong?

Thanks in advance.

    <script type="text/javascript">
    <!--
    function formType(value){
        if (value == 'maintenance') {
            window.location = "index.php?requestType=maintenance";
        } else {
            window.location = "index.php?requestType=standard";
        }
    -->
    </script>
    <select id="changer" name="type" onchange="formType(this.value);">
              <option value="standard" <?php if ($requestType == 'standard') { echo "selected"; } ?>>Standard</option>
              <option value="maintenance" <?php if ($requestType == 'maintenance') { echo "selected"; } ?>>Maintenance</option>
    </select>
  • 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-26T15:41:11+00:00Added an answer on May 26, 2026 at 3:41 pm

    You are missing a } at the end of your function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to navigate to another page with redirect by assigning a navigation-rule. The
I'm try to redirect any request to mydomain.com/video/(.*) to video.mydomain.com/$1. I have the following
Bear with me as I try to learn more about .htaccess redirect rules -
I have a custom class that, when called, will redirect to a page and
Please give me an idea on how to display elements in a page depending
how i can redirect from my login page to home page after the login
I have a page with several user controls that use Ajax. When I try
I try to create login form in web application. in JSP page I can
I have a rough program sketched thusly: if (condition){ //redirect to some page }
I'm trying to make the page redirect to the same page to avoid resending

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.