Re: $_GET & $_POST simultaneously

From: Date: Wed, 12 Jan 2005 19:01:24 +0000
Subject: Re: $_GET & $_POST simultaneously
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206234@lists.php.net to get a copy of this message
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

« previous php.general (#206234) next »