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 8319645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:23:28+00:00 2026-06-08T22:23:28+00:00

I want to use an idea that I have seen on another website where

  • 0

I want to use an idea that I have seen on another website where I enter a “keyword”, press Enter, and it then takes the client to a specific page or website.

I have seen something like this on http://qldgov.remserv.com.au, On the right side there is a field called “My Employer”, type in “health” for example and you will be provided with relevant content.

Essentially I have client branded mini sites where we want to assign a “keyword” for each client brand so all of their employees will be able to go to their site entering this one keyword without all of them having individual logins. I want to be able to link to a URL that I can define in some manner.

I have looked at the source code of the site mentioned above and see they are using a form but I am not sure how they have assigned the keywords or if its even possible to do this without a database or anything like that. Trying to keep it as simple as possible as I am not a PHP/Java expert by any means.

Any help would be appreciated, even if its not code but an idea of the direction I need to go in to make this work. Thanks in advance!! 🙂

  • 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-06-08T22:23:30+00:00Added an answer on June 8, 2026 at 10:23 pm

    The easiest way in my eyes would be to define an array that contains all of the keywords and respective urls client side (in JS). For example:

    ​var array = { 'health' : '/health.php', 'sport' : '/swimming.php' };
    

    You would then get the user input on onSubmit and if it exists modify the window.location appropriately.

    if ( array[user_input] !== undefined ) {
         window.location = array[user_input];
    }
    else {
         alert ( 'not found' );
    }
    

    If the user supplied health they will be redirected to /health.php, if they supply sport they will be redirected to /swimming.php (JSFiddle). Alternatively you can use server-side (PHP, JAVA) to handle the request but this may not be worth the effort.

    Goodluck.

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

Sidebar

Related Questions

I want to use a vertical UISlider . I have no idea about how,
i want use some data from a website with web service. i have a
I have a mobile flow for registration that I want to use in my
I want to use h:link component in my xhtml file but Idea doesn't seem
I have seen some apps that have a few rake tasks included to load
The use case is that I have a remote (read slow) database from which
I have seen scripts that have a menu fixed to the top of the
I've seen some PHP applications use lines of code that are like this: throw
I have been doing some reading, and I see that I can use getch()
I have never used Heroku before, but our client wants us to use it.

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.