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@xxxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, January 11, 2005 5:42 PM
Subject: $_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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php