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

Posted by Erwin Moller on 02/23/07 16:45

plemon wrote:

> Is it ok for me to name the form and the radiobutton and the
> function the same name or will that cause problems now or further down
> the road?

Nope.
The name of your form is not important (from PHP's point of view, but it
matters of course if you use JavaScript).

Since you can only submit 1 form at a time, PHP receives only 1 form, which
you retrieve via $_POST[].

How your radiobutton is named is not important as long as you know it.

And functionnames declared in PHP couldn't care less about the names that
populate your $_POST.

So as far as I can tell, go with it, but make sure you don't confuse
yourself with all these same names. :-)

Happy coding!

Regards,
Erwin Moller

On a sidenote: I wonder if the name of the form is send to PHP at all? Does
anybody know how to retrieve that?

 

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

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