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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:35:51+00:00 2026-05-29T03:35:51+00:00

I have a HTML page containing a form which consists of; text, check boxes

  • 0

I have a HTML page containing a form which consists of; text, check boxes and drop-down menus.

on completion the user clicks submit and is taken to a new page, on this page I have a JavaScript which performs some analysis on the inputs and then writes its results.

THE PROBLEM: transferring the form inputs to the next page, I need to be able to access the form inputs on the next page,

e.g if text input was “true” I can access this on the next page and assign it into a variable.

So at the moment I’m thinking the best way to do this is with a session cookie.

However I’m struggling with the code for storing all the form inputs into the cookie and then how to access them on the second page.

Any help would be greatly appreciated! or any ideas on other methods to complete this task!

Thanks!

  • 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-29T03:35:52+00:00Added an answer on May 29, 2026 at 3:35 am

    If you don’t need to do anything server-side, you can submit the form using the method='GET' rather than POST. That way, the inputs will be available in the url and can be parsed in your JavaScript.

    For example:

    <html>
      <script type='application/javascript'>
        var search = location.search;
        var parts = search.slice(1).split('&');    // Need to slice to remove initial '?'
        for (var i=0; i < parts.length; ++i)
        {
          var info = parts[i].split('=');
          var variable = info[0];
          var value = info[1];
          document.write("<p>" + variable + " = " + value + "</p>");
        }
      </script>
      <form method='GET'>
        <input type='text' name='name'>
        <input type='checkbox' name='chosen'>
        <input type='submit' value='Go'>
      </form>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On extracting some html from a web page, I have some elements containing text
I have a form in my HTML page, containing a label, an input field
I have a basic page, with a div containing text, and a form to
Hi I have this html page containing some links in it which are at
I have a php page, which launches a popup window containing a form with
i have a html page sth.html containing <div id=recoverpass> <h2>Recover Password</h2> <form action=# method=post
I have an aspx page with 1 table containing 2 rows: <!DOCTYPE html PUBLIC
I have an HTML page (say welcome.html) which contains an iframe to a page
I have a HTML page that scrolls up and down (not a lot, but
I have a HTML page with which I want to do some client side

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.