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]
|