You are here: Re: Getting values into a form: PHP (Server) or Javascript (Client) Side? « All PHP « IT news, forums, messages
Re: Getting values into a form: PHP (Server) or Javascript (Client) Side?

Posted by Good Man on 09/28/48 11:41

"d" <d@example.com> wrote in
news:zm_Nf.29523$wl.21033@text.news.blueyonder.co.uk:

>> The only point would be saving me programming time. On a page with
>> 50+ form-fields, I can save lot of time by writing a PHP loop that
>> writes an HTML call to a javscript function instead of going to each
>> form field and entering the value="<?= $first_name ?>" stuff...
>
> May I suggest learning templates? They exist for just this sort of
> thing. They take the edge off writing repetative pages. Either write
> your own templating toolkit (better) or get one off the shelf.

is this where the SMARTY thing comes into play? I've heard of it for a
long time but have never used it, as I generally prefer to code my
applications personally...

i think i'm still looking for a good reason NOT to use javascript to
populate my form fields, since I know that my audience is finite and
restricted to javascript-enabled browsers.... especially when my form has
50+ fields. it's too late to look at templating (ie: learning something
new) at this point in the project, but i will do it in the future.


thanks

 

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

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