I also am making a PHP based multi player tic tac toe game, and found a way to automatically submit. I used JavaScript to call a function in JavaScript to submit the page.
Here is the code:
This is for calling the JavaScript function from PHP (sould go on the top of the page in the HTML)....
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>
The code below uses the code above to call the JavaScript Submit function....(this should go in the PHP)
//Auto Submit the form
?><body onLoad="MM_callJS('auto()')"><?php
This code is the JavaScript Function that submits the page... (sould go above the form, and dont forget to change the "form_name" to the name of your form)
<script language="javascript">
function auto(){
document.form_name.submit();
}
</script>
Hope This Helps.....
If you want to see my multi player TTT program just say so here... and I will post the link.
Evan Mjelde
evan18h@yahoo.com