I am creating a fairly basic HTML form that is going to be posting data to a form-handling script elsewhere. After numerous incarnations, I've ended up with one form that submits to any number of scripts on the other end (depending on the values/states of certain items in the form) by changing the form's action property through javascript.
As it happens, one of the items the remote site REQUIRES to be sent along with the form data is named "action". So now there's a conflict. When I try set the form action property (doc.formname.action=url), it assumes I'm trying to set the action form item and tells me 'object expected'. Changing that bit of code to doc.formname.action.value=url resolves the error, but is setting the wrong 'action'.
Is there a more specific way of referring to the form's action property? If the remote site had all the scripts combined under one URL, this wouldn't be an issue, but I unfortunately have no control of their script separation, variable names, etc.
Thank you.
As it happens, one of the items the remote site REQUIRES to be sent along with the form data is named "action". So now there's a conflict. When I try set the form action property (doc.formname.action=url), it assumes I'm trying to set the action form item and tells me 'object expected'. Changing that bit of code to doc.formname.action.value=url resolves the error, but is setting the wrong 'action'.
Is there a more specific way of referring to the form's action property? If the remote site had all the scripts combined under one URL, this wouldn't be an issue, but I unfortunately have no control of their script separation, variable names, etc.
Thank you.