code to send chemical name over to server