Reply to Re: [PHP] Re: $_GET and $_POST arrays not working

Your name:

Reply:


Posted by "John Nichel" on 11/26/05 15:59

> On Saturday 26 November 2005 02:45, John Nichel wrote:
>> If you have a form like this one one page...
>>
>> <form action="page2.php" method="post">
>> <input type="hidden" name="foo" value="bar" />
>> <input type="submit" />
>> </form>
>>
> [snip]
>
> Dear John
>
> Please go all the way when providing an example. To prevent errors and
> unpredictable behaviour, ALWAYS add encoding to the form tag.
>
> <form action="page2.php" method="post" enctype="multipart/form-data"
> name="form1">
>
> Systematically adding names on all your forms may save you many hours of
> hair
> plucking as well ;)

Neither are required. enctype is implied if left out, and name is only
'useful' on the client side. Even the W3C's examples match what I posted.

http://www.w3.org/TR/html4/interact/forms.html#h-17.3

--
John C. Nichel IV
Programmer/System Admin
Dot Com Holdings of Buffalo
716.856.9675
jnichel@dotcomholdingsofbuffalo.com

[Back to original 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

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