Support the ongoing development of Laravel.io →
Requests Input Session
Last updated 2 years ago.
0

can you post your codes here ? your version to that problem

Last updated 2 years ago.
0

Currently no solution yet. I can have submit button to achieve it(get the user's answer with Input::get() ) but that doesn't work in multiple question quiz since radio button option should be saved in session before finally submitting ..

Is there ajax way to achieve this?

Last updated 2 years ago.
0

Session is not a good solution....suppose you have 50 pages and 20 question each page...

I think you can save it in temporary table in database

Last updated 2 years ago.
0

Thanks for your reply.

I'm little confused. There will be navigation link at the bottom to switch between questions, without clicking submit button(only at the end, he will click Complete Submit Button), will it be possible to get the Input request and store it ??

Last updated 2 years ago.
0

you need to have a unique identifier for each page ....:)

but the simplest thing to achieve this is to do it in Javascript

where the pages ( one to another ) are navigated without having to store it in PHP logic. it means that you have a big page inside a form

 <form>
    <div class="page_1">
           ......questions here
    </div>

    <div class="page_2">
        ......questions here
    </div>


   <div class="page_end">
  
        <input type="submit" value="Submit your answer" />
   </div>
</form>

<div class="navigation_of _each_page">

    page 1 | page 2 ..............
</div>

create some javascript/jQuery for the navigation /page switching.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.