dynamic form manipulation
Posted: Wed Feb 04, 2004 10:35 am
Hi
Im trying to manipulate a forms input before submitting it dynamically like this
function submitForm(str_Action)
{
document.forms.frm_Categories.ActionType.Value = "str_Action";
document.forms.frm_Categories.submit();
}
however the new value never appears on the action page, the form seems to retain its original value for ActionType
Unfortunately I'm using ASP to process this form (not by choice), but Im sure ive done the same thing before using a PHP script to process it and its workes fine!
Im trying to manipulate a forms input before submitting it dynamically like this
function submitForm(str_Action)
{
document.forms.frm_Categories.ActionType.Value = "str_Action";
document.forms.frm_Categories.submit();
}
however the new value never appears on the action page, the form seems to retain its original value for ActionType
Unfortunately I'm using ASP to process this form (not by choice), but Im sure ive done the same thing before using a PHP script to process it and its workes fine!