JamesManke
Programmer
When submitting more than one apostrophe in a sentance through a form(in this case the comment), it will not insert into the database? With one apostrophe, no problems. Any more and it just doesn't Insert it. I need some help on this one.
Example:
Heres the form...
<form method='post' action='add_test.php?add=yes'>
<table>
<tr>
<td>New Testimonial:</td>
<td><textarea name='comment' cols='70'rows='5'></textarea></td>
</tr>
<tr>
<td colspan='2'><input type='submit' name='submit' value='Submit Information' /></td>
</tr>
</table>
</form>
Heres the query...
$sql = "INSERT INTO $table (comment) VALUES ('$_POST[comment]')";
mysql_query($sql);
Thanks for your help,
James
Example:
Heres the form...
<form method='post' action='add_test.php?add=yes'>
<table>
<tr>
<td>New Testimonial:</td>
<td><textarea name='comment' cols='70'rows='5'></textarea></td>
</tr>
<tr>
<td colspan='2'><input type='submit' name='submit' value='Submit Information' /></td>
</tr>
</table>
</form>
Heres the query...
$sql = "INSERT INTO $table (comment) VALUES ('$_POST[comment]')";
mysql_query($sql);
Thanks for your help,
James