|
Posted by Lars B. Jensen on 10/03/98 11:05
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
>
>
Navigation:
[Reply to this message]
|