How to pass a parameter to a form?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
7 views
Hello!
There is a layout where clicking on the "fix" I have form where I enter employee id, and send id of the person whom I pressed the button that would then bind them to each other. Question: How can I pass this parameter to a form?
@section('content') Base employeesIDNameDirectorThe postStart date:SalaryAction@foreach($employee as $employer) {{$employer->id }}{{ $employer->name }}{{ $employer->director_id }}{{ $employer->position }}{{ $employer->beginning }}{{ $employer->wages }}Snap@endforeach Bind employee{{ csrf_field() }} $('a[rel*=leanModal]').leanModal();@endsection
by | 7 views

2 Answers

0 like 0 dislike
Use data- settings, they just do. For example, the link hang
data-id="{{ $employer->id }}"
and in js then take it back and bustle in a hidden field in the form, which should already be there.
by
0 like 0 dislike
Make a hidden input that wakes up to contain this data.
On the server to catch $_POST['id'];
by

Related questions

0 like 0 dislike
3 answers
asked Apr 20, 2019 by malishkina2502
0 like 0 dislike
1 answer
asked Jun 11, 2019 by vardoLP
0 like 0 dislike
1 answer
asked Jun 2, 2019 by selftrips
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
35,430 users