Re: $_GET & $_POST simultaneously

From: Date: Tue, 11 Jan 2005 08:48:18 +0000
Subject: Re: $_GET & $_POST simultaneously
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206061@lists.php.net to get a copy of this message
Is it just me or ... why on earth would you want to populate both GET and POST arrays through this obscure way of coding ? If you really have a form where you dont have a clue wether your data comes from GET or POST, it should be way less effort to copy one array to another or have a lookup function to return the given value. / Lars ----- Original Message ----- From: "Bostjan Skufca @ domenca.com" <bostjan.skufca@domenca.com> To: <php-general@lists.php.net> Sent: Tuesday, January 11, 2005 5:42 PM Subject: [PHP] $_GET & $_POST simultaneously
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#206061) next »