Page 1 of 1

Sending GET and POST simultaneously

Posted: Sun Apr 23, 2006 9:27 pm
by alex.barylski
I know it's not standard practice or anyting, but say I have a FORM which submits via POST but in it's action attribute I also specify a query string with variables set using GET...

I tried this iin both IE and firefox and it's seems to work, so long as you check $_POST & $_GET directly not $_REQUEST...

So I assume it's acceptable...but is it really?

Cheers :)

Posted: Sun Apr 23, 2006 10:01 pm
by Nathaniel
I don't see why it wouldn't be. It's a valid URL, so why would the browser care?

Posted: Sun Apr 23, 2006 10:13 pm
by d3ad1ysp0rk
Yeah, sometimes I use that on control panels where I'll have:
news.php?action=add
news.php?action=edit
news.php?action=delete

and I'll trasnfer all the other info via post.

Posted: Sun Apr 23, 2006 11:21 pm
by Charles256
I almost exsclusively use a combo of get and post

may I know how to do that

Posted: Mon Apr 24, 2006 12:53 am
by dibyendrah
May I know how to do both POST and GET simultaneously ?