Its a silly thing to tell, but sometimes, the most obvious things are overlooked.
Use document.formname.submit(); instead of window.formname.submit();
kbdrand wrote:
Why doesn't the Javascript command 'window.formname.submit()' work with PHP?
I have a submit button on the form. That works fine. It submits the form and the resulting form has the $HTTP_POST_VARS['Submit'] value set.
I also have a table cell that has an onClick event set to 'window.formname.submit();' (where formname is the name of the form). When I click the table cell the form does return to the form set in the form 'action' parameter, but the $HTTP_POST_VARS['Submit'] is not set. None of the standard POST variables are set.
Anyone know why that happens?