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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:37:55+00:00 2026-05-27T10:37:55+00:00

I need to build a form takes the user inputs and builds a query

  • 0

I need to build a form takes the user inputs and builds a query string, and then loads that URL

For example

<form id="form1" name="form1" method="post" action="">
  <p>
    <label>INPUT1
      <input type="text" name="INPUT1" id="INPUT1" />
    </label>
  </p>
  <p>
    <label>INPUT2
      <input type="text" name="INPUT2" id="INPUT2" />
    </label>    
  </p>
  <p>
    <label>
      <input type="submit" name="loadURL" id="loadURL" value="Submit" />
    </label>
    <br />
  </p>
</form>

http://website.com&model=<INPUT1>&cathegory=<INPUT2>

Is there a way to do this using just HTML, or does this need javascript? Any pointers on the easiest way to do this is appreciated.

  • 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-27T10:37:56+00:00Added an answer on May 27, 2026 at 10:37 am

    Just set the action="/some/form/processor" and the method="get" (instead of post) and the fields in the form will be sent as the query string.

    To get your example of http://website.com&model=<INPUT1>&cathegory=<INPUT2> you would have

    <form id="form1" name="form1" method="get" action="http://website.com">
    <!-- or, more simply, since the website _is_ website.com -->
    <form id="form1" name="form1" method="get" action="/">
    

    The input names are used as the parameters, so your complete form would be

    <form id="form1" name="form1" method="get" action="/">
      <p>
        <label>INPUT1
          <input type="text" name="model" id="INPUT1" />
        </label>
      </p>
      <p>
        <label>INPUT2
          <input type="text" name="cathegory" id="INPUT2" />
        </label>    
      </p>
      <p>
        <label>
          <input type="submit" name="loadURL" id="loadURL" value="Submit" />
        </label>
        <br />
      </p>
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using regular asp.net c# (webforms) i need to build a simple form that
We need to build the following application:- User punches in couple of inputs into
I need to build a cron expression based on user input from a form.
I need to build a form where I have 2 comboBoxes . Select country
I need to build a class in this form namespace BestCompanyEver { public class
I need to build a simple, single user database application for Windows. Main requirements
I need to build something that starts serving a H.264 encoded video to a
I am looking for a form class that: Is standalone/doesnt need a framework to
I've been developing a piece of software that takes rules of the form 'A
I'm trying to build a PHP form that outputs custom JSON code. Take a

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.