Below is my HTML code of form where I used Form button outside the form and its working fine for me..and the value of my field is fetching from Mysql Like Status is Active, Passive or Dead what I am looking for is my form will execute only if the fetching input value equals to Passive or Dead Only Totally Don't Know What to Do.
<input type="submit" form="nameform" value="Admit Student" style="margin-right: 16px" name="admit" />
<form action="/student/create" method="get" id="nameform">
<div class="row">
<div class="col-sm-4">
<div class="form-group" style="display:none;">
<label>Current Status</label>
<input type="text" value="<?php echo $enquiry_data['status']; ?>" name="status" class="form-control">
</div>
</div>
</form>