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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:42:57+00:00 2026-06-14T12:42:57+00:00

Im stuck , I have a website which index’s gamer profiles and now keeps

  • 0

Im stuck , I have a website which index’s gamer profiles and now keeps a historic record.
Everythings implemented and working only when you manualy write the url out.
Folowing the link made by the form wont work because its index.php?id= and i then want to add &date onto this but ?date= needs to be &date= from the form ontop of index.php?id=

Normal user input normalyresults in somthing like:
index.php?id=123456789

which returns the users profile no problem
On that page i have “load historic data” drop down which shows dates of this profile to load dependant on the id input.

<form method='get' action='index.php?id=$data' >

Folowing the submit button on the page returns:

index.php?id=123456789?date=112012

however , The only way i can get this to work is to manualy change that ? to a & between ID and DATE
For the life of me i cannot figure it out!

basicaly i need:
index.php?id=123456789 ? date=112012
to be
index.php?id=123456789 & date=112012

So that when the page reloads i can see both ID and DATE
I think i can be done via post however i need it visible in the url idealy
Ive also tried:

<form method='get' action='$_SERVER['PHP_SELF']'>

<form method='get' action='id_$data'> (with a mod rewrite)
  • 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-14T12:42:59+00:00Added an answer on June 14, 2026 at 12:42 pm

    GET

    You can’t use the get method for sending to a url already containing a get param as you will get mixed results from different browsers. You need to add them to hidden fields like this which will then get added to the URL when the form is sent:

    <form method='get' action='index.php'>
    <input type='hidden' name='id' value='<?php print $data; ?>' />
    <input type='hidden' name='date' value='112012' />
    <input type='submit' value='Submit' />
    </form>
    

    POST

    If you need to set the form method to post, while containing get params in the url it needs to be done like this:

    <form method='get' action='index.php?id=<?php print $id; ?>&date=112012'>
    <input type='text' name='message' value='this is in POST, the other params are in GET' />
    <input type='submit' value='Submit' />
    </form>
    

    SECURITY

    Do not do this:

    <form method='get' action='$_SERVER['PHP_SELF']'>
    

    Reason why not

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

Sidebar

Related Questions

I have a classifieds website which I am now trying to integrate SOLR into,
I've been stuck on a little unix command line problem. I have a website
I have been stuck on this for a while now and I cannot seem
I have an application which serves more than one website. Similar to Stack Exchange,
I currently have a website source code (no control over the source) which contains
I have this html form which calls a php file . The index.html ->
I have a website which is located at http://maxflix.com/ . The website works perfect
I have a weird scenario in which the website seems to randomly run out
I have a personal message system on my website, which is pretty easy. But
I have almost completed an ASP.NET webforms website using jQuery Mobile. I am stuck

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.