interesting..
I changed it to,
".addslashes(htmlspecialchars($ad_title))."
and it no longer gives an error, but still allows the new thread to posted with the ' in it!? So it's not removing anything, it's just adding slashes to allow that character I imagine?
tried adding,
trim($ad_title, " ' ");
inside the submit part of the script to remove ' from the title, but that didn't seem to work either..
|