Jump to content

how do i get the form with a method of get to keep the same url but add


scrubbicus

Recommended Posts

so i have a search thing that's included into the page and it's using the method of get so i can transfer that value through some odd pages. ive tried a few things in order to get the URL to stay the same because  I need the information on the URL as well but the GET method is destroying the url.

 

ok so my url is going to be at all times

index.php?page=$_GET[$global]

 

when i send the get form it does this

 

index.php?query=

 

or

 

query=

 

I need the $_GET['page'] superglobal in order for my website to work I've tried a few things on the actual form for what the action does like

 

action="index.php?page=$_GET[$global]&"

 

action="&"

 

action="?"

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.