Handle various form content types appropriately.