You are here: Re: Query Question « All PHP « IT news, forums, messages
Re: Query Question

Posted by Joseph Melnick on 09/28/35 11:17

Hello Brian,

Yes you are correct. Using JavaScript for usability is valid.

You could have simplified this task with a single mullti-select without the
need for a checkbox.

<select name="locations" multiple>
<option value="99999" selected>All Locations</option>
<option value="89837">89837 - Smallville</option>
....
<option value="98374">98374 - Largerville</option>
</select>

Would simplify validation and reduce page real-estate.

Just a idea.

Have a great day.

Joseph Melnick
JM Web Consultants
http://www.jphp.com




> I agree with what your saying, but for example the site I have been
> working on recently required the user to select a 'store' or 'all stores'
> My client asked for a tick box for all stores, and 2 drop down lists of
> the store number or location.
> By using JavaScript, if the 'all' box is ticked then set the 2 drop down
> lists
> to blank, if say the store location is selected then set the store number
> and
> tick box to blank, and so on.
>
> This way when the form is submitted I can run various tests to see what
> has been set, what to look for and what variables to use. The reason I
> have
> done it this way is so I don't have to build a un-friendly user interface
> that
> would confuses the user.by select this if you want this, and that if you
> want that
> and so on.
>
> I'm not saying that once the form has been submitted you should run
> Regular
> Expressions on the incoming data, but this way you no what to run on what.
>
>
> Brian
>
>
>

 

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

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