I have 3 Submit buttons on page.
<form class="" action="" method="POST">
<button type="submit" name="type" class="btn mosh-btn mosh-btn-2" value="elevator">ლფტის შეკვეთა</button>
<button type="submit" name="type" class="btn mosh-btn mosh-btn-2" value="eskalator">ესკალატორის შეკვეთა</button>
<button type="submit" name="type" class="btn mosh-btn mosh-btn-2" value="parts">ნაწილების შეკვეთა</button>
</form>
And php Code:
if (!isset($_POST['type']))
{
include 'inc/liftorderform.php';
}elseif ($_POST['type'] == 'elevator')
{
include 'inc/liftorderform.php';
}elseif ($_POST['type'] == 'eskalator')
{
include 'inc/eskalatororderform.php';
}elseif ($_POST['type'] == 'parts')
{
include 'inc/partsorderform.php';
}
How i make this action, without refreshing page. help please
Aucun commentaire:
Enregistrer un commentaire