I need to query the Bank and return the value of the variables on the same page PHP
. But even the test to try to understand logic did not work:
<html>
<form name="registar" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
sua form bLA BLA BLA
<input type="submit" class="submit" name="submit" value="Enviar registo" />
</form>
<?
if (!$_POST['submit']) {
echo "bla bla bla SEU nome, pass";
} else {
echo "AGUARDANDO";
}
?>
</html>
In this case it only enters the "WAITING FOR".
Can anyone give me an idea?