Code: Select all
<form style="width: 345px" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" id="domain" name="domainform">and a submit button:
Code: Select all
<input class="text" type="submit" name="submitBtn" value="Check domain"/>Code: Select all
if (isset($_POST['submitBtn'])){So what is happening when I hit the return key with a form element in focus, and what other condition can I check to get the code in the if statement to run?
Thanks.