|
Posted by OmegaJunior on 02/25/07 02:11
On Fri, 23 Feb 2007 17:45:51 +0100, Erwin Moller
<since_humans_read_this_I_am_spammed_too_much@spamyourself.com> wrote:
>
> On a sidenote: I wonder if the name of the form is send to PHP at all?
> Does
> anybody know how to retrieve that?
No, only inputs, buttons and textareas are sent to the handling script.
Which means that if you want to know the name of the form, you need to add
it as an input. One solution for this is to change the name of the submit
button so that it contains the form name. The submit button is sent when
it's clicked or otherwise activated, and as it is an input, it is received
by the handling script. You can retrieve it by testing for it using a
switch(), or you can use the entire $_POST as an associative array.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Navigation:
[Reply to this message]
|