Fix Undefined index roundtrip when checkbox is not ticked by pre-defining value as 0

This commit is contained in:
Marcus Hill 2023-02-12 23:31:54 +00:00
parent bbfcc48b3d
commit 980260c696
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@
</button>
</div>
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="roundtrip" value="0">
<div class="modal-body bg-white">
<div class="form-row">

View File

@ -10,6 +10,7 @@
<form action="post.php" method="post" autocomplete="off">
<div class="modal-body bg-white">
<input type="hidden" name="trip_id" value="<?php echo $trip_id; ?>">
<input type="hidden" name="roundtrip" value="0">
<div class="form-row">