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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:02:59+00:00 2026-05-26T01:02:59+00:00

is there a way of using the GET method to send variables via URL

  • 0

is there a way of using the GET method to send variables via URL from a selection list, but keeping the current variables in the URL intact???

Because I have a selection list and I used to select one of those to bring up a new league table using the POST method, but because I have pagination when I click on the links to go to the next page and so on, it refreshes and it loses the POST from the Selection and just shows the league table again as the default selection in the list and not the one that I selected originally. So how would I go about using the GET method for this, but so I can keep the variables currently set in the URL aswel. As when I try to use the GET method it removes the other variables in the URL and only sends the variable from the selection list.

 echo "<form method=\"POST\" action=\"\">
 Rankings after the<SELECT NAME=\"rankingsfrom\">$options1</SELECT>
 <input type=\"submit\" value=\"Go\"/></form>";
  • 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-26T01:02:59+00:00Added an answer on May 26, 2026 at 1:02 am

    You can have hidden type inputs in the same form. If you want to keep page number, you can retrieve it and put it in something like:

    echo "<form method=\"POST\" action=\"\">
     Rankings after the<SELECT NAME=\"rankingsfrom\">$options1</SELECT>
     <input type=\"hidden\" name=\"pageNumber\" value=\"$page_number\" />
     <input type=\"submit\" value=\"Go\"/></form>";
    

    Then when you post it, you can retrieve the page number with $_POST[‘pageNumber’]

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

Sidebar

Related Questions

Is there a way using SWT to get a list of all processes currently
Is there a better way than using globals to get interesting values from a
Is there a way to get all versions of list item(s) using a CAML
Is there a way using Subversion to get snapshot of the files for a
Is there any easy way using the api to get a count of all
There is a way to get the total memory PHP is using ( memory_get_usage()
Is there a way (on windows using Delphi 2010) to get the number of
Is there a way to get Windows audio mixer levels using WMI? For example,
Is there a way to get an associated icon in C# without using any
Is there a way to authenticate using LightOpenID library using POST method? To be

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.