can you post your codes here ? your version to that problem
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?
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
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 ??
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community