Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 716447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:18:01+00:00 2026-05-14T05:18:01+00:00

I need to make a form with a Text Area that accepts lines of

  • 0

I need to make a form with a Text Area that accepts lines of script, any kind of script be it javascript, css, html, vbscript, whatever. How can the script be passed to a form post?

EDIT: How can this script be modified so it can be inserted into a Database? Specifically SQL Server 2005

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:18:02+00:00Added an answer on May 14, 2026 at 5:18 am

    In the normal way, it’s just text. It only becomes “script” when you ask a script interpreter to interpret it (or a compiler to compile it; these lines are getting blurrier and blurrier). So you can include it in your form in exactly the same way you would if it were where someone should type anything else — a forum post, a question, an answer, a brief description of their job, a love letter… 🙂

    Edit Re your edit follow-up, what you need to do is properly pre-process the text. This doesn’t only relate to script, you run into issues with normal text too. Here are some links addressing this in the context of SQL injection attacks, but the techniques are the same whether you’re defending against SQL injection or just trying to support having a single quote in someone’s name.

    Starting with a fun comic:

    http://imgs.xkcd.com/comics/exploits_of_a_mom.png

    …and then referencing some useful stuff:

    http://en.wikipedia.org/wiki/Sql_injection

    Classic ASP SQL Injection Protection

    How can I avoid SQL injection attacks?

    Can I protect against SQL Injection by escaping single-quote and surrounding user input with single-quotes?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have html form with textarea in which i paste some XML, for example:
I am using the jQuery Form Plugin with my Rails app. I have a
I have window with some STATIC labels and BUTTONs on it. I make all
ASP.NET MVC 2.0: Simple Model Binding not working/binding as it should i have a
I am looking for some help autosaving tinyMCE. I want to save the content
I'm trying to create my own error window for the project I am working
Ok so this maybe a simple/silly question but I don't know so here goes:
I'm just getting back into coding after a few year hiatus and I'm trying
From my understanding partial classes are a bit frowned upon by professional developers, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.