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 5997087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:12:46+00:00 2026-05-23T00:12:46+00:00

I have an ancient webpage that I need to instill some databasing capabalities into

  • 0

I have an “ancient” webpage that I need to instill some databasing capabalities into it, and I’m afraid I’m at a loss as I can’t find a good enough resource on how to do that and how the queries goes as far as classic ASP.

so this is basically how it goes, I have a form validator which is written in jQuery, once the form is validated, I want to use a $.post request to send the data to a form processor (some sort of classic asp file).

I tried using Request.Form(“field”) but it isn’t working.
I tried even using a $.get request using Request.QueryString(“field”) and I have no success there aswell.

some code:

Dim sConnection, objConn , objRS 
sConnection = "connection string" 
username = Request.QueryString("username")
sitename = Request.QueryString("site_name")
email = Request.QueryString("email")
comment = Request.QueryString("comment")
dataInsert = ("INSERT INTO larrydb_review (username, sitename, email, comment, rating) values (username, sitename, email, comment, rating)")
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open(sConnection) 

objConn.Execute dataInsert

I’m assuming that the SQL Query string isn’t written correctly, but I afraid I haven’t found where to write one properly using asp variables.

Any help will be greatly appreciated,
Thank you.

  • 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-23T00:12:46+00:00Added an answer on May 23, 2026 at 12:12 am

    If you are using the METHOD = POST in your form, to retrieve the data sent in your ASP page:

    username = Request.form("username")
    sitename = Request.form("site_name")
    email = Request.form("email")
    comment = Request.form("comment")
    

    then to update the SQL Table you have to create a dynamic string as:

    dataInsert = "INSERT INTO larrydb_review (username, sitename, email, comment, rating) values ('" & username & "', '" & sitename & "', '" & email & "', '" & comment & "', '" & rating & "')"
    

    Also your variable sConnection = “connection string” must be properly fill with the connection string for your database like this example:

    sConnection = "Provider=SQLNCLI.1;Password=YOUR_PASSWORD;Persist Security Info=True;User ID=YOU_USER_ID_FOR_DB;Initial Catalog=YOUR_DATABASE_NAME;Data Source=IP_YOUR_DB_SERVER;Use Regional Settings: Yes"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an ancient application that basically duplicates a file explorer, outlook style application
I have an ancient mess I'm trying to shovel into tiers using subsonic. Trouble
We have some ancient Delphi code (might have even originated as Turbo Pascal code)
Note, this is some ancient NHibernate installation! I have the following NHibernate class: [Serializable]
Some background information: We have an ancient web-based document database system where I work,
I have a script that appends some rows to a table. One of the
i have a input tag which is non editable, but some times i need
I have an ancient code snippet I use for copying tables in MySQL. CREATE
I have a large application in a production environment that I'm trying to move
I have inherited an app where users can insert their own HTML responses. I

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.