Escaping quotes for attributes

I have a line of code in php as follows:
echo "<td><input type=text name=chapter_i value='".$row['Chapter']."' readonly> </td>";

Works OK but I’d like to set the width of the box as well using width=“10”. The problem is I can’t work out how to escape the “” to get it to work. CAn anyone help? TIA

By using single-quotes - width=‘10’

That at least doesn’t give me any errors but no matter the number the size of the box remains unchanged.

Turns out width is not what I wanted but size. Works perfectly now ta.

Sponsor our Newsletter | Privacy Policy | Terms of Service