Posted by Toby A Inkster on 05/18/07 10:42
Phil Latio wrote:
> function getTextBox()
> {
> $line = "<input type=\"text\" ";
> $line.= "name=\"";
> $line.= $this->textboxName;
> $line.= "\" ";
> $line.= "class=\"";
> $line.= $this->style;
> $line.= "\" />";
> return $line;
> }
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!
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
[Back to original message]
|