Reply to Re: [PHP] [NEWBIE] Cant get $_POST to work

Your name:

Reply:


Posted by Jochem Maas on 02/21/05 15:38

John Nichel wrote:
> The Disguised Jedi wrote:
>
>> i think you have to use the ID parameter in the input tag in your HTML
>>
>> Name: <input type="text" name="name" value="your name" id="name" /><br/>
>> Age: <input type="text" name="age" value="your age" id="age" /><br/>
>>
>> try that and see how it goes....
>
>
> If I'm not mistaken, ID in a form element will assign it a 'style', much
> the same way as 'class' does. It's been a while since I've done any
> HTML/CSS, so I could be wrong.
>

the ID of a DOM element is exactly that - the id of the element in the document
(object model). only the NAME attribute is used when POSTing form elements...
so that come down to ID only being used on the clientside (as fas as this example
is concerned - obviously serverside XML processors may make use of ID attributes
for their own reasons)

indeed both ID and CLASS attributes can be used to assign style instructions to a
DOM element. (bare in mind that assign styles, even in very specific/advanced ways
usually doesn't require referencing either attribute - the CSS pros/samurai are
recommending using ID amd CLASS to assign style only as a last resort)

[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

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