Reply to Re: $_GET & $_POST simultaneously

Your name:

Reply:


Posted by Morten Rønseth on 10/04/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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация