devxlogo

Inserting Data Through SQL

Inserting Data Through SQL

Question:
I’m using ASP to register data in a DBF table through a SQL statement. I get data from a form (textarea) in an HTML page. However, the SQL statement returns an error when the user presses the Enter key in the textarea to change lines. How can I fix this problem?

Answer:
Try adding WRAP=VIRTUAL to your textarea definition tag. That will allow the user to hit the Enter key within the textarea and not cause your Submit button to trigger.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist