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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:45:30+00:00 2026-06-05T22:45:30+00:00

I am currently working on a html file that prompts you to enter a

  • 0

I am currently working on a html file that prompts you to enter a name. It will then take that name and add it to a SQL server database. Here is the code:

<!DOCTYPE html>
<html>
<body>

<form name="customerForm" action="" method="get">
First Name: <input type="text" name="firstname" /><br />
Last Name: <input type="text" name="lastname" /><br />
<input type="button" name="button" value="Add Customer" onClick="addCustomer(this.form)">
</form>

<script type="text/javascript">
function addCustomer(form)
{
    var x = form.firstname.value;
    var y = form.lastname.value;
    var name = x+" "+y;
    alert(name);
}
</script>
</body>
</html>

Currently I have the javascript function to put the name into an alerty box to see if it worked.

I understand the html side of the program. What I don’t know is any kind of technology or efficient method to add the data into a SQL server database.

If anybody is willing to help, I would really appreciate it. 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-06-05T22:45:32+00:00Added an answer on June 5, 2026 at 10:45 pm

    You would need a server-side technology like ASP.NET, PHP, or something similar to take your form submission and do something with it on the server side.

    There may be some kind of jQuery plugin of some sort to do this, but you would be better suited to learn one of the above technologies.

    Is there some sort of reason why you cannot use a server-side technology?

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

Sidebar

Related Questions

I’m currently working on a website that will enable users to upload certain types
I am currently working on a project to create simple file uploader site that
I´m currently working on a short SED script that needs to HTML-encode parts of
I am currently working on a prototype ASP.NET MVC 3 solution that will be
I'm currently working on a little html/js site and my current goal is to
I am currently working on a GWT project where I am displaying an HTML
Currently working with converting SQLException error messages into messages that are more useful for
I am currently working on an application that pulls Google Map locations from an
I am currently working on a project that needs to be able to set
first I'll show you what I'm currently working with and then I'll show you

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.