Use forms with or without client-side JavaScript--no code duplication required!