Jump to content

Appending GET data with form submition


Errant_Shadow

Recommended Posts

Okay, what I'm trying to do is to use a form to append an already existing GET data string.

 

It goes something like this:

 

REQUEST_URI="/page.php?var1=foo&var2=bar"

 

Now, what I want to do is just add a new variable to the end there without replacing the whole thing. I try using the URI as the form action, but it just replaces the string entirely, returning "/page.php?var3=wtf" rather than "/page.php?&var1=foo&var2=bar&var3=wtf"

 

Any ideas how to make this work?

Link to comment
https://forums.phpfreaks.com/topic/182394-appending-get-data-with-form-submition/
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.