Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 20th, 2004, 07:54 PM
jae jae is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Posting contents of Textarea to MySQL database

I'm having a problem posting a form which has a textarea to a MySQL database.

The database field is a LONGTEXT field but when someone inputs an apostrophe ' the text does not get inputted into the database.

TIA.

 
Old August 21st, 2004, 04:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Replace the ' with '' (single quote with double single quotes) that should solve the problem.

BTW, no mention about what frontend you are using. this is posted on ASP forum, I assume that you are using ASP as frontend. So you can make use of REPLACE() function to do that, before inserting into DB.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old August 21st, 2004, 12:02 PM
jae jae is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

happygv,

I'm sorry that I didn't mention it in my post, but yes the frontend is ASP.

I was able to use the REPLACE function before entering it into my DB and it worked perfectly.

Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert textarea content into MySQL? a5xo3z1 Beginning PHP 14 October 2nd, 2008 01:47 PM
Textarea form posting Apocolypse2005 HTML Code Clinic 2 April 20th, 2007 03:59 PM
Refreshing Contents Of A Variable from Database roh_gupta Classic ASP Basics 1 February 22nd, 2005 01:08 PM
posting a textarea with a keyboard enter md0004 Javascript How-To 4 March 12th, 2004 06:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.