I am using a modal and after successfully processing the form with form.php, I can't get it to redirect to a thank you page. Have I place the redirect code in the wrong place? The code is below.
<!-- Modal -->
<div class="modal1 mfp-hide" id="myModal1" data-redirect=".../thank-you.html">
<div class="block mx-auto" style="background-color: #FFF; max-width: 700px;">
<div class="row m-0">
<div class="col-md-6" data-height-xl="456" data-height-lg="456" data-height-md="456" data-height-sm="0" data-height-xs="0" style="background-image: url(one-page/images/page/4.jpg); background-size: cover;"></div>
<div class="col-md-6 col-padding" data-height-xl="456" data-height-lg="456" data-height-md="456" data-height-sm="456" data-height-xs="456">
<div>
<h4 class="text-uppercase ls1">Sign Up for Offers</h4>
<form action="include/form.php" class="row mb-0" style="max-width: 300px;">
<div class="col-12 form-group">
<label for="" class="text-capitalize font-weight-semibold">Username or Email:</label>
<input type="email" id="template-op-form-email" name="template-op-form-email" value="" class="sm-form-control" />
</div>
<div class="col-12 form-group">
<label for="" class="text-capitalize font-weight-semibold">Choose Password:</label>
<input type="password" id="template-op-form-password" name="template-op-form-password" value="" class="sm-form-control" />
</div>
<div class="col-12 form-group">
<button type="submit" class="button button-rounded button-small button-dark m-0" value="submit">Register Now</button>
</div>
</form>
<p class="mb-0"><small class="font-weight-light">_* No Credit Card Required_</small></p>
</div>
</div>
</div>
</div>
</div>
<!-- End Modal-->