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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:20:15+00:00 2026-06-12T13:20:15+00:00

I have a multi-page form. Each page posts data form one to the next,

  • 0

I have a multi-page form. Each page posts data form one to the next, where PHP stores the POST data as Session data. At the end of the table this session data is displayed in a summary table before final submission stores that session data in a MySQL database.

There are two ways to navigate away from a form page: both options to submit the form data.

1) The submit button which performs the form action, and navigates the user to the subsequent form page.

2) A page menu, from where the user can land on any other form page. I use JavaScript on the menu navigation to prompt submission:

$('#menu a').onclick {
    $('#myform').submit();
});

However the submit action of the form is:

<form id="myform" method="post" action="?page=survey-2">
...form fields...
</form>

So instigating submit only posts the updated data to the subsequent page.

In the use-case: user fills out form, arrives at summary page, sees and error uses the menu to navigate back to a page, alters it and uses the menu to jump back to summary page: nothing changes, obviously because the updated data is ONLY being submitted to the following page, NOT the destination of their navigation.

Is there a way I can use js (or anything) such that when a link is clicked in the menu, the DESTINATION of that navigation link, also receives the form data? Or alternatively, that the action of the form can submit to all the pages at once (but default navigation is to the subsequent page only)?

Thanks for your consideration

  • 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-12T13:20:17+00:00Added an answer on June 12, 2026 at 1:20 pm

    Use AJAX to post the data to the handler, then go wherever you want to go with the callback

    $('#menu a').onclick {
        var data = $('#myForm').serialize();
        var handler = '?page=survey-2';
        $.post(handler,data,function(){
            window.location.href='http://www.google.com';
        })
    });
    

    For more about jQuery POST:

    http://api.jquery.com/jQuery.post/

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

Sidebar

Related Questions

I have a multi-page form. I'd like to have a prev and next button
I have a multi-page form, aka a Wizard pattern, where Page 1 corresponds to
I have a multi-lingual page where I want to display form validation error in
I have a multi-array stored in a SESSION I loop through the data in
I have a multi-step form and user can navigate to any page to modify
I'm working on a multi-page form. Here's the outline of its function: Part One:
I have a multi-step data entry form in my ASP.NET MVC application. When the
I have a multi-page form, and I'm trying to implement Back buttons, so that
I have a page of similar items, each in their own form I want
I have a multi page form that I am trying to implement on my

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.