Jump to content

URL doesn't reflect query string


dtyson2000

Recommended Posts

Back for more here...

I've searched all over and REQUEST_URI doesn't seem to work for me, unless the syntax was wrong when I tried it. I guess I really don't know what I'm searching for.

I've got a page that is the result of a query that calls up the ID of a record. That's no problem. What I am doing is is asking the user to input a variable into a form so that the result will update the same window to reflect the addition. We'll use a Zip Code as the example:

[code]
<form name='form' action='file.php' method='get'>
[/code]

What that does is add the new variable to the url but the initial query appended to the url is gone, so the result is the record returns nothing.

How can I retain the query in the url (file.php?id=$id) and append say a zip code to that (file.php?id=$id&zipcode=$zipcode)?

I appreciate any help anyone can offer.
Link to comment
https://forums.phpfreaks.com/topic/28341-url-doesnt-reflect-query-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.