Page 1 of 1

dynamic form manipulation

Posted: Wed Feb 04, 2004 10:35 am
by mzfp2
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!

Posted: Wed Feb 11, 2004 10:24 am
by Wayne
try

Code: Select all

function submitForm(str_Action) 
{ 
document.frm_Categories.ActionType.Value = str_Action; 
document.frm_Categories.submit(); 
}