You are here: Re: a question about syntax « PHP Programming Language « IT news, forums, messages
Re: a question about syntax

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]


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

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