xajax: submit disabled fields

by prettyscripts on 2008-06-30 14:15:50 • Leave a comment »

javascriptxajax

by default xajax.getFormValues does not pass values from disabled fields. as previously noted, it is browser standard not to submit disabled fields. with xajax.getFormValues(), disable field can still be submitted. by setting 2nd optional parameter to… more »

Tags: disabled field, form, submit, xajax

php: posting disabled fields

by prettyscripts on 2008-04-17 11:13:25 • Leave a comment »

miscphp

when posting a form, disable field is not found in $_POST data. this is intentional! the browser is doing in accordance to html spec – do not send disabled fields to the server.solution add a hidden field with the value. the value in hidden f… more »

Tags: disabled field, php, post