E
E
emerysh2017-06-21 17:00:25
JavaScript
emerysh, 2017-06-21 17:00:25

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>

Option 2
<form action="" method="GET">
<button type="submit" name="submit" class="btn border-slate text-slate-800 btn-flat">Сохранить</button>
</form>

<?php 
if($_GET['submit']){ бла бла }

Why does option 1 work and option 2 doesn't?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ihor Bratukh, 2018-11-17
@MegaPuxapb

Google 3d round carousel jquery

M
MegaPuxapb, 2018-11-21
@MegaPuxapb

Put this
https://github.com/specious/cloud9carousel

S
Stalker_RED, 2017-06-21
@emerysh

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 question

Ask a Question

731 491 924 answers to any question