Here's my problem.
Basically, I have form, on submission the form calls it's _submit function (mytest_form_submit), basic Forms API stuff. The _submit function returns a contructed URL to another callback in the system.
I'm using a block with a form on it, and just putting the block in one of the columns.
Now, Using the form from any page except the forms' results page works fine. After submission you are redirected with the return value from mytest_form_submit, to a results page.
Submissions not from the results page have the following log entries:
[] [error] [client *.*.*.*] MYTEST_FORM_SUBMIT####, referer:http://***/tests/results/0/1/2/test
[] [error] [client *.*.*.*] RESULTS ACTION###, referer: http://***/tests/results/0/1/2/test
Any form submissions from this results page ends up running the callback twice. I guess once for submitting to itself and then again with the returned url from the _submit function.
Here's the error log output for a submission from the results page.
[] [error] [client *.*.*.*] RESULTS ACTION###, referer: http://***/tests/results/0/1/2/test
[] [error] [client *.*.*.*] MYTEST_FORM_SUBMIT####, referer:http://***/tests/results/0/1/2/test
[] [error] [client *.*.*.*] RESULTS ACTION###, referer: http://***/tests/results/0/1/2/test
I guess my first question is Am I doing this right?