Question
PHP/MySQL & HTML quote conflict
I'm working on an update form for a PHP/MySQL database in
DreamweaverMX2004. One particular piece of data includes quote
marks to indicate inches for a size (i.e. '25"w x 32"h', see code
below). When the server tries to insert that text into the "value"
field in the form element, it reads the first quote mark within the
data as the end quote mark for the value field. So, rather than
'25"w x 32"h' appearing in the update field, I get '25'. How do I
get around this? I need to keep the quotes in the data.
<input name="size" type="text" id="size" value="<?php echo $row_Recordset1['size']; ?>">
<input name="size" type="text" id="size" value="<?php echo $row_Recordset1['size']; ?>">
