Re: $_GET & $_POST simultaneously

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Thus wrote Bostjan Skufca @ domenca.com:
> Hello,
> 
> If I create form like this
> <form name="form" action="##_URI_ROOT##/entity/edit.php?a=b" method="post">
> 	<input type="hidden" name="action" value="modify" />
> ...

> Now what I am interested in is if this is valid behaviour regarding HTTP 
> specification and if other platforms support this interference of GET and 
> POST variables in request?

Well the action should tell the browser to request:
  POST /root/entity/edit.php?a=b
 
And supply the appropiate data to be posted.

if the browser does do this then it is up to php to populate the
GET and POST varibles, and if memory server me right, this has been
done since early php3.


Now as to wether the client support's passing the full action URI's
to the server, i've only had issues with early version's of IE4.

Basically the only difference between a GET and POST is a POST has
extra data that is sent, besides some minor issues like what when
and how to cache post form.

HTH,

Curt
-- 
Quoth the Raven, "Nevermore."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux