Menu
I’m trying to extract what I can from the PHP manual at php.net, but I can’t figure it out.
I have a string:
[code=php]
$errspan = “<span class=”error” $s id=”$snotice”> $s </span>”;
But when I try to do the following:
[code=php]
$fname = sprintf($errspan,””,”fname”,”You must enter a valid first name”);
It gives me the following:
[code=html]
<span class=”error” id=””></span>
When what I want is this:
[code=html]
<span class=”error” id=”fnamenotice”>You must enter a valid first name</span>
Can anyone help me out with this?