If you want to display the input values on another page before you proceed further with it you can use Session::put(Request::all())
If you want to summarize input values on the same page where the form is use plain javascript. With angularjs that's a 5 minutes job.
rdxrbn said:
i have input user form i want to display that to the user before they submit
Should i use sessions or any other way in laravel 5 please help me ?
you also can do this on your target method, example :
/*your form*/
<form method="post" target="some_method">
<input type="text" name="field1"/>
<input type="submit"/>
</form>
/*your method*/
public function some_method(Request $request)
{
/*display the data*/
$data=$request->input();
return $data;
}
if you only display the data, you don't need to store it into session
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community