<?php
if (isset($_POST['nome']) && isset($_POST['qtde']) && !empty($_POST['nome']) && !empty($_POST['qtde'])) {
$nome = $_POST['nome'];
$qtde = $_POST['qtde'];
echo "Aviso ao representate $nome <br/>
A equipe com $qtde alunos foi aceita!";
}
else if (!isset($_POST['nome'])) {
echo "O campo nome nao existe na variável POST.";
}
else if (isset($_POST['nome']) && isset($_POST['qtde']) && empty($_POST['nome']) && empty($_POST['qtde'])) {
echo "Preencha os campos";
}
}
else {
echo "Não houve submit.";
}
PD9waHAKCmlmICghZW1wdHkoJF9QT1NUKSkgewoKICAgIGlmIChpc3NldCgkX1BPU1RbJ25vbWUnXSkgJiYgaXNzZXQoJF9QT1NUWydxdGRlJ10pICYmCiAgICAgICAgIWVtcHR5KCRfUE9TVFsnbm9tZSddKSAmJiAhZW1wdHkoJF9QT1NUWydxdGRlJ10pKSB7CgogICAgICAgICAgICAkbm9tZSA9ICRfUE9TVFsnbm9tZSddOwogICAgICAgICAgICAkcXRkZSA9ICRfUE9TVFsncXRkZSddOwogICAgICAgICAgICBlY2hvICJBdmlzbyBhbyByZXByZXNlbnRhdGUgJG5vbWUgPGJyLz4KICAgICAgICAgQSBlcXVpcGUgY29tICRxdGRlIGFsdW5vcyBmb2kgYWNlaXRhISI7CiAgICB9CiAgICAgICAgZWxzZSBpZiAoIWlzc2V0KCRfUE9TVFsnbm9tZSddKSkgewoKICAgICAgICAgICAgZWNobyAiTyBjYW1wbyBub21lIG5hbyBleGlzdGUgbmEgdmFyacOhdmVsIFBPU1QuIjsKICAgIH0KICAgICAgICBlbHNlIGlmIChpc3NldCgkX1BPU1RbJ25vbWUnXSkgJiYgaXNzZXQoJF9QT1NUWydxdGRlJ10pCiAgICAgICAmJiBlbXB0eSgkX1BPU1RbJ25vbWUnXSkgJiYgZW1wdHkoJF9QT1NUWydxdGRlJ10pKSB7CgogICAgICAgICAgICAgICAgZWNobyAiUHJlZW5jaGEgb3MgY2FtcG9zIjsKICAgICAgICAgICAgfQogICAgfQoKZWxzZSB7CgogICAgZWNobyAiTsOjbyBob3V2ZSBzdWJtaXQuIjsKCn0=