can i send Both GET and POST data at same time

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

can i send Both GET and POST data at same time

Post by lokesh_kumar_s »

hi is it possible to send both GET and POST data at the same time please help.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: can i send Both GET and POST data at same time

Post by VladSun »

Yes.

Code: Select all

<form action="mypage.php?GET_DATA_GOES HERE">POST_DATA_GOES_HERE (use form fields ofcourse : )</form>
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: can i send Both GET and POST data at same time

Post by Darhazer »

VladSun wrote:Yes.

Code: Select all

<form action="mypage.php?GET_DATA_GOES HERE">POST_DATA_GOES_HERE (use form fields ofcourse : )</form>
<form action="mypage.php?GET_DATA_GOES_HERE" method="POST">

The default method is GET ;-)

And yes, you can, as the GET data is added to the path...

Code: Select all

POST /mypage.php?someval=1&someval=2 HTTP/1.1
Host: example.com
Content-length: someValue
Content-type: application/x-www-form-urlencoded
Connection: close
 
somepostvariable=somepostvalue
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: can i send Both GET and POST data at same time

Post by VladSun »

Darhazer wrote: <form action="mypage.php?GET_DATA_GOES_HERE" method="POST">

The default method is GET ;-)
I stand corrected :)
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply