Re: $_GET & $_POST simultaneously

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

 



Bostjan Skufca @ domenca.com wrote:
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" />
...
both arrays contain appropriate variables when submitted:
::: $_GET :::
Array
(
[a] => b
)
::: $_POST :::
Array
(
[action] => 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?

Thank your for your answers,
Bostjan
This is a POST - as the action specifies.
However, you have also supplied GET parameters in the URL, so that when PHP parses the URL it will fill in the appropriate GET values. Simple and clean.



Cheers,


-Morten

--
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