I have this form on a page
<dialog loginmodal>
<a class="close" closeloginmodal>×</a>
<h2>Login</h2>
<hr>
<form method="POST">
<div class="form-group mb-3">
<label for="Email">Email</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">@</span>
</div>
<input type="email" class="form-control" id="Email" name="email" required>
</div>
</div>
<div class="form-group mb-3">
<label for="Password">Password</label>
<input type="password" class="form-control" id="Password" name="password" required>
</div>
<div class="form-row">
<div class="col">
<div class="d-grid">
<button class="btn btn-primary" type="submit"><span class="icon-ok"></span> Submit</button>
</div>
</div>
</div>
<input type="hidden" name="type" value="login">
</form>
<h6 class="text-end"><button openforgotmodal class="btn btn-link">Forgot Password</button></h6>
</dialog>
But when I submit it I get
why is the form being submited to that page (shouldn’t it be submitted to the current page)
I have another form on the page,
<form action="sites/add_site_engine.php" method="POST" enctype="multipart/form-data">
Can I make the form submit to the current page instead?