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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:21:40+00:00 2026-05-25T01:21:40+00:00

I have a form page and I would like to submit the form details

  • 0

I have a form page and I would like to submit the form details to my server, and store the details within the server.

I need a script to send the client’s request to the server and I thought of using JavaScript.

I came across XMLHttpRequest while searching.

Could anyone please point me in the right direction?

  • 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-25T01:21:41+00:00Added an answer on May 25, 2026 at 1:21 am

    JavaScript is a client-side scripting language, it can not store anything on your server as you will need a server-side scripting language.

    The first part of drawing a form and asking the user for the data is easy and can be done in HTML, and some jQuery if you would like it nice looking. The server-side will require a PHP/ASP script that will store or send the submitted data.

    Example:

    HTML (form.html):

    <form method="POST" action="store.php">
    Enter Your Name: <input type="text" name="fullname" />
    </form>
    

    PHP (store.php):

    <?php
     foreach($_POST as $name=>$value)
     {
        $contents .= "$name = $value" . "\n";
     }
    
     // save locally in cache folder
     $fd = fopen("cache/filename.txt", "w");
     fwrite($fd, $contents);
     fclose($fd);
    
     // mail me the submitted data
     @mail("me@there.com", "some subject", $contents);
    
     // die in piece
     die();
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form with several submit buttons. I would like the button's click
I have a form that I would like to submit to a component for
I have more than one form on the same page: I would like to
I have a basic form that I would like to submit using ajax, without
Possible Duplicate: jQuery AJAX submit form I have a form on a page A,
I have a form in an HTM page that, after pressing the submit button,
I have a form, like so: <form action= method=post> <select name=pageType> <option value=main>Main Page</option>
I have a handler, more like a submit button. And I would like to
I have a jsp form which takes in user details. On submit button it
I have a form in my app and I would like to allow users

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.