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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:25:49+00:00 2026-05-21T10:25:49+00:00

I have a form that is on a PHP Page and consists of 2

  • 0

I have a form that is on a PHP Page and consists of 2 elements.

  • A rating dropdown box (out of 5)
  • A comment box (Text Box)

and a submit button.

I want to place the content of these two into the URL, how do I do this?

An example would be:

example.php?rating=4&comment=asdasdasda%20asdasdas%20

The form is:

   <form action="" method="get"> 
        <label>Rating:</label> 
        <select class="form_input"> 
            <option value="1">1</option> 
            <option value="2">2</option> 
            <option value="3">3</option> 
            <option value="4">4</option> 
            <option value="5">5</option> 
        </select><br /> 
        <label>Comments:</label> 
        <textarea class="form_textarea"></textarea> 
        <input type="submit" class="form_submit_right" value="Submit" /> 
        </form> 
  • 1 1 Answer
  • 1 View
  • 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-21T10:25:49+00:00Added an answer on May 21, 2026 at 10:25 am

    If you want to put the values that you entered into the drop-down and the text input into the URL like ?dropdown_name=dropdown_value&textbox_name=textbox_value then you need to specify GET as the form method in your form opening tag:

    <form action="" method="get">
       ...
    </form>
    

    EDIT: The reason the form isn’t working if because your controls (the select and textarea) need to have name attributes. The name defines the key in the key=value pair.

    Your form should look like:

    <form action="" method="get"> 
        <label>Rating:</label> 
        <select name="rating" class="form_input"> 
            <option value="1">1</option> 
            <option value="2">2</option> 
            <option value="3">3</option> 
            <option value="4">4</option> 
            <option value="5">5</option> 
        </select><br /> 
        <label>Comments:</label> 
        <textarea name="comment" class="form_textarea"></textarea> 
        <input type="submit" class="form_submit_right" value="Submit" /> 
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form page in PHP that reads a DBF, and conditionally converts
I have a PHP page that queries a DB to populate a form for
I have a contact page (contact.php) that sends a form (formsend.php) when people fill
I have a php page that has a form that asks for an e-mail.
So I have a form on PHP/HTML page. User submitss it to that same
I have an Ext.form.Panel that calls a PHP page by passing search parameters. The
I have a form that has Submit button in form of an Image. When
My dilemma is this: I have a PHP page with a form that includes
I have a form that sends a simple http post to a PHP page.
I have an HTML form that submits to a PHP page which initiates 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.