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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:26:48+00:00 2026-05-29T23:26:48+00:00

I am in a bit of tricky situation modifying my existing forms. Below is

  • 0

I am in a bit of tricky situation modifying my existing forms. Below is the flow of form. After each form submission the database insertion takes place in the subsequent form page.

      <!-- this is form 1 -->
      <form action="/form2.php" method="post>
         <label for="policies">Policies: </label>
            <select name="policies">
           <option value="1">1</option>
           <option value="2">2</option>
           <option value="3">3</option>
        <option value="4">4</option>
        </select>
        <input type="submit" name"next" value="next">

        </form>
<!-- This is form 2 -->
        <form action="/form3.php" method="post>
        <input type="submit" name"next" value="next">
        </form>
 <!-- This is form 3 -->       
        <form action="/form4.php" method="post>
        <input type="submit" name"next" value="next">
        </form>

Now I if user selects Policies as 2,3, or 4 I need to display form2 (2,3 or 4 times accordingly).

For example, if the user selects 3 policies,

I need to fill form 2,click next,fill form 2 again,click next fill,form 2 again before he goes to form 3.
This is all bit confusing. I do not know how i would go about coding such a thing.

  • 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-29T23:26:49+00:00Added an answer on May 29, 2026 at 11:26 pm

    You could use a $_SESSION[] value to track how many more times the form needs to be repeated. Session values let you persist some data over multiple scripts. Learn more about PHP sessions: http://php.net/manual/en/features.sessions.php

    What you might do is record in the session how many times the policy form still needs to be filled out. If the user selects 3, you’d set $_SESSION[“policy_remaining”] = 3. Pass control over to the policy form and when it’s processed, $_SESSION[“policy_remaining”]–. if $_SESSION[“policy_remaining”] > 0, send the user back to the policy form. if $_SESSION[“policy_remaining”] == 0, send them on to form 3.

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

Sidebar

Related Questions

It's a bit tricky to describe css issues, but I'll do my best. Below
The Zend Form is proving to be a bit tricky for me, even as
I've a bash script that sequentially calls a java program. That's a bit tricky
I have run into a bit of a tricky problem in some C++ code,
This is getting little bit tricky. I am using state pattern in my application
I'm finding this a bit tricky! Maybe someone can help me on this one
What i am trying to achieve here is a bit tricky. Let me brief
I am developing a website in Sharepoint 2007. I came across a bit tricky
This one is bit tricky , I created jsfiddle here http://jsfiddle.net/WXmcL/10/ to kinda replicate
This is a bit tricky and I'd be glad if you guys could give

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.