I am having a problem spitting out text saved into a MySQL database and displaying it in an HTML form input field. The text will spit out fine unless there is a single or double quote, then the text is spit out until the quote. The text is all in the database with the escaped slash and the the quotes but when accessing the text in an input field I can only get up to the single quote. Any help is greatly appreciated. Here is the offending code:
while ($row = mysql_fetch_array($queryLink)) {
$title = stripslashes($row['title']);
$description = stripslashes($row['description']);
$address = stripslashes($row['address']);
}
echo "<h2>Edit Link</h2>";
echo "<table>";
echo "<form method='post' action='/inc/forms.php'>";
echo "<input type='hidden' name='form' value='editLink'>";
echo "<input type='hidden' name='id' value='" . $_GET['id'] . "'>";
echo "<tr>";
echo "<td>Title: </td>";
-- > echo "<td><input type='text' name='title' size='50' value='" . $title . "' /></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Description: </td>";
echo "<td><input type='text' name='description' size='50' value='" . $description . "' /></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Address: </td>";
echo "<td><input type='text' name='address' size='50' value='" . $address . "' /></td>";
echo "</tr>";
echo "<tr>";
echo "<td rowspan='2'><input type='submit' value='Submit' /></td>";
echo "</form>";
echo "</table>";