|
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]
|