I have a web site containing one form, which is submitted with a "submit" button. To check data validity, there is a JavaScript function called by the onsubmit attribute of the form.
The 'form' statement is
<form id="Form1" method="post" action="LatLong.php" önsubmit="return(ChkSubmit());"
target="Response">
In all tests which I have done with various browsers, this works as expected.
However, from time to time, I get spurious calls to the php file which come in groups of 5 calls spread over a few seconds. By setting the initial value of a dummy field, I have demonstrated that they do come from the form (not by direct access to the php), but the ChkSubmit() function has not been called in these cases - the first thing it does is to change the dummy value.
php always reports the HTTP_USER_AGENT as "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
I suspect that a robot is somehow making these calls. While I can ignore them in the php file, it would be better to avoid them happening. I would appreciate any advice.
Roger