Wednesday, 7 August 2013

echo HTML tag into php input value

echo HTML tag into php input value

I have problem , I want to echo the string which is html tag, so I don't
know how to say that but this is my code
echo '<input type="hidden" name="id" value='.($row['id']).'>';
where the value of $row['id'] is '<b>test</b>', the problem is on the
output of the echo, the closing tag of <b> will close the input tag, so
the value of input just '<b' thanks.

No comments:

Post a Comment