|
Posted by Morten Rønseth on 10/02/84 11:05
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
Navigation:
[Reply to this message]
|