I would use tabs as wizard form, to submit all the data.
In your case is to have each tab with submit button, Or you will have to do more logic in your controller which is not useful if you want to submit all the inputs..
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have two tabs. Status and Multimedia. Users can share status or multimedia. I am trying to use just one form. How can I handle with tabs and validations? What is the logic of this? Thank you guys.
https://ibb.co/DtpPfnN "Screenshot"
I am using Laravel 5.8 and Bootstrap 4.3 (This form is just an example and I am trying.)
<form method="POST" action="{{ route('test') }}">
@csrf
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-status" role="tabpanel" aria-labelledby="nav-status-tab">
<div class="form-group">
<textarea class="form-control" id="status" rows="3" name="content1"></textarea>
</div>
</div>
<div class="tab-pane fade" id="nav-multimedia" role="tabpanel" aria-labelledby="nav-multimedia-tab">
<div class="form-group">
<textarea class="form-control" id="multimedia" rows="3" name="content2"></textarea>
</div>
</div>
<button class="btn btn-outline-success" type="submit">Send</button>
</div>
</form>
Please or to participate in this conversation.