You are here: Re: Problem combining validation and templates « PHP Programming Language « IT news, forums, messages
Re: Problem combining validation and templates

Posted by Phil Latio on 05/18/07 21:11

> What's all this mess all over the place?!
>
> function getTextBox ()
> {
> return sprintf('<input type="text" name="%s" class="%s" />',
> htmlentities($this->textboxName),
> htmlentities($this->style)
> );
> }
>
> Go and tidy your room Phil!

Hahaha... thanks Toby :-))

Actually I have recently seen %s but didn't understand it's useage. It was
used in QCodo framework

As for htmlentitities, that's something I've also seen but never really
investigated it's use. I shall wander over to the PHP manual and take a
look. I agree your solution is a much tidier than mine.

Cheers

Phil

 

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

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