In a form, the disabled attribute is easily enabled through javascript. But what if a user doesn't have javascript? My thoughts were:

1.) write the disabled="disabled" attribute with javascript. If javascript is not available, then there won't be any fields unavailable.
2.) use server-side scripting (in my case, PHP) to go back to that disabled field when the form is submitted and enable it

What is the accepted technique from a usability and accessibility standpoint?