0

Hi all,

I'm pretty new to Perl and already I'm finding myself lost. I have created a form for my website that allows users to enter news articles (a textarea) and then my code saves the text entered ($Text) to the database. I have set the Text to longtext through SQL, because these articles are relatively long, but for some reason whenever I try to input new data, it takes me to a blank screen and the url is my setArticle.cgi (where I am saving $Text and updating it to the DB). When I submit articles that are shorter, about 2 paragraphs long, the script works fine. Any reason why this is being difficult? Sorry if it isn't clear. Thanks so much!

-Mckenzie

3
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by Comatose
0

You will probably find that length is not the issue, but that you have characters in your input that are causing problems with your SQL insert. Make sure that all characters are suitably escaped.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.