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

  • Home
  • SEARCH
  • 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 8210827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:12:46+00:00 2026-06-07T10:12:46+00:00

<form id=questions_1> <div data-role=collapsible-set data-theme= data-content-theme= id=’q1′> <!– GETS QUESTIONS FROM THE DATABASE –>

  • 0
    <form id="questions_1">
     <div data-role="collapsible-set" data-theme="" data-content-theme="" id='q1'>
      <!-- GETS QUESTIONS FROM THE DATABASE -->
     </div>
    </form>

So I have a form that goes on for 5 pages like shown above, and I want to save all the data from each step, I am thinking something along the lines of this to pass all the data for each form into a .php page:

    function formSubmit1() {
     $("#questions_1").submit(function() {
      $.post('addToSession.php',$("#questions_1").serialize().function(data) {
      });
     return false;
     });
    }

By adding the following code to each “submit”/next page button I think I can call the function.

    <a data-role="button" href="#questions_2" onClick=formSubmit1()>Next</a>

This might need some customization but the part I am really unsure about is how do I get all the data without knowing their id’s. The idea is to make the questions in this poll vary in order, size and questions so I need a general code that can handle any input.

  • 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-07T10:12:50+00:00Added an answer on June 7, 2026 at 10:12 am

    Use $_REQUEST to get data from forms on submit. After getting data $_SESSION['name'] = $_REQUEST.

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

Sidebar

Related Questions

jQuery Mobile Docs says if we wrap form element in div containing data-role=fieldcontain proper
I've created a form on which I load several questions from a database, the
Im using the following ajax code to submit data from a form to a
I have a form like this (from a widget template): '<div>' + ' <form
I'm trying to make a dynamic form of questions and answers, like so: Question
I've seen countless questions of the form I don't like padding how do I
I have a form with a series of questions, radio buttons. Each group is
In one of my previous questions I explained about a form class that contain
If I have a form of about 40 questions, how do I apply the
i have a couple questions about an idea i have to manage a form

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.