On one page of my site, users fill in a form, the contents of which are written to the DB.
On another page, the user can edit their details. This works by getting the data out of the DB, and filling in a form with the data they have already entered, using:
<input type="text" name="comment" value=<?php echo($comment); ?>>
type of line.
This works fine for all of the data which are numbers, or single words, but if I have a value like:
"This is the comment", the value which prints into the form is:
"This"
I know that the info is coming out of the DB properly, as I have printed the variables out, anf they are fine, it's just when I put it into the form there is a problem.
Any ideas?! Thanks!