You are here: Re: Can I get the form name from $_POST? « All PHP « IT news, forums, messages
Re: Can I get the form name from $_POST?

Posted by David on 02/26/07 04:23

Steve wrote:
> <bissatch@yahoo.co.uk> wrote in message
> news:1172446927.050902.126230@s48g2000cws.googlegroups.com...
> | Hi,
> |
> | When I submit a form, I use the $_POST thingy to get the form values.
> | Is it possible to get the form name from this method?
> |
> | For example:
> |
> | <form name="form1" method="post" action="...">
> | <input type="text" name'"name"...
> | .
> | .
> | </form>
> |
> |
> | When I submit the form I will get the POST variable "name" as well as
> | any other form elements that are submitted. Can I also get the form
> | name, "form1"?
>
> no.
>
>
why not put the form name with in a hidden field?
<input type="hidden" name="form_name" value="Name of your form">

--
MicroSoft's NEW Motto: "Good enough." When you're on top, that's the
only standard that matters.

 

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

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