duckduckgoose wrote:Is there a way to tell if it's been submitted?
You could check if anything at all was POSTed...
if(!empty($_POST)) {
// something was POSTed...
}
Or, you could just check in the same way you would check for a form with a submit button: check to see if one of the elements you're expecting data from has been posted:
<form action="myScript.php" method="post">
<input type="hidden" name="action" value="foobar!"/>
<input type="hidden" name="blah" value="blahblah..." />
</form>
if(isset($_POST['action'])) {
// form was submitted...
}