You are here: Re: Using a <SELECT> field on a Form « PHP Programming Language « IT news, forums, messages
Re: Using a <SELECT> field on a Form

Posted by Rik Wasmus on 01/02/08 09:12

On Wed, 02 Jan 2008 07:50:17 +0100, Alan M Dunsmuir =

<alan@moonrake.demon.co.uk> wrote:

> Michael Fesser wrote:
>> If these records are identified by a number for example, assign them=
to
>> the 'value' attribute of your select options:
>> <select name=3D"foo">
>> <option value=3D"1">first name</option>
>> <option value=3D"2">second name</option>
>> ...
>> </select>
>>
> I'm still missing the point here, I think.
>
> If a user selects 'John Smith', and I know that that is the record wit=
h =

> value '37', how does that help me to access, say, his address and =

> date-of-birth without going back to the database?

Short of storing the entire result in a session, or as hidden form field=
s, =

yes, you query that (again). It should have very little overhead though.=

-- =

Rik Wasmus

 

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

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