I'm not sure if there's an elegant solution to this, but I'd be grateful for any suggestions.
I'm storing room sizes in a single field in a db table, eg.
14'2" x 15'1" (4.34m x 4.62m)
I then need users to be able to edit this info using a form, but when I read the info from the table and do something like the following:
<input name="roomsize" type="text" value="<?php echo $roomsize; ?>"
the double quotes are interpreted as the end of field, resulting in the input text box displaying only 14'2 in the above example.
Simply echoing $roomsize on its own displays the correct data.
If I change the double-quotes from " to (double prime) then the problem goes away, but users will obviously enter " (ie. shift-2 [UK keyboards, at least]) rather than
Even suggestions for an inelegant solution would do
🙂