You are here: Re: [PHP] $_GET & $_POST simultaneously « PHP « IT news, forums, messages
Re: [PHP] $_GET & $_POST simultaneously

Posted by Lars B. Jensen on 10/04/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]


Удаленная работа для программистов  •  Как заработать на 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

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