Answer the question
In order to leave comments, you need to log in
How to make button function as Input?
How can I make these 2 codes equal?
Option 1
<form action="" method="GET">
<input type="submit" name="submit" value="Сохранить" />
</form>
<form action="" method="GET">
<button type="submit" name="submit" class="btn border-slate text-slate-800 btn-flat">Сохранить</button>
</form>
<?php
if($_GET['submit']){ бла бла }
Answer the question
In order to leave comments, you need to log in
In the second case, there is no value.
Or redo the check in php. Instead , use
But both - shitcode.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question