mardi 19 février 2019

How to get multiple array generated by jQuery in Laravel

Here is my jQuery code. I would like to add this into Laravel Project.

[https://jsfiddle.net/blueink/ec15ytmq/23/][1]

Just plain jQuery code I can reicve array using this code below.

echo var_dump($_POST["search_1"]);

I write below in Laravel. but I can't get arary. and error says

Undefined index: search_1

public function register(Request $request)
    {   
       $post_data = $request::all();
       $search_1 = $request::all();
       return view('pn.conf',compact('post_data'),compact('search_1'));
    }

Could someone teach me what is wrong my code please? and LINE 84. There are 20 input-field. Is there simple way to not write many search_2 search_3 ....?

https://jsfiddle.net/blueink/ec15ytmq/23/

this.generateFields(20);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire