Appending GET data with form submition


Posted on 16th Feb 2014 07:03 pm by admin

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?

188 Like 14 Dislike
Previous php-forum Next php-forum
Other php-forum

How to limit the calls to an API
Hello, in my simple script I call an api which effectively involves me getting an xml file.

H

Posting Serialized Data Not Working
I am trying to send an object from one PHP file to another using POST. I serialize the object and th

Find occurences of unicode characters in string
I need to prohibit filenames with everything but English characters and numbers but regexp and strin

Prevention Help
How can I use PHP or any other language (feel free to move this thread) to prevent users doing scree

Connect to database that isn't localhost
I am currently doing a small script for a company that doesn't have mySql support on there hosting.

I got my hosting suspended XD
So I saw this challenge a day or so ago

http://www.programming-challenges.com/pg.php?page=dow

Are sessions secure at all?..
I haven't really gotten into yet, but I was just thinking of something weird..

Lets say you h

PHP Script runs on CLI but not through web browser
I am running into an issue that I just can't seem to find the answer to. I have a Windows Server 200

Display a default image
I am trying to display generic image for items that don't have one, but I can't get it to display.

Problems generating word documents on server side for security reasons
I have a problem with word documentation generation when generating a word document (docx) with PHP.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash