hey folks, i m new in php, i m echoing a a value with a css class. to wrap the class i wrapped it around p element. the class is printing the value but the element p is also printing along. here is my code
i suppose the php echo data which make the input html class null. isn’t it? coz i wanna generate the class within php not out of php code. coz its not being applied. like that
Make sure you use the dots Immerse used in his code to concatenate strings. The warning suggests you’re using comma’s, thus supplying different parameters for the htmlentities() function, which is not what you want.
i tried the first example. i m getting this error in the input field
<br /> <b>Warning</b>: htmlentities() [<a href=‘function.htmlentities’>function.htmlentities</a>]: charset `</p>’ not supported, assuming iso-8859-1 in <b>page.php</b> on line <b>214</b><br /> <p class=“total”>