Awesome q2a theme

How to pass a parameter to a form?

0 like 0 dislike
26 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:[email protected]($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 | 26 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,187 answers
0 comments
40,796 users