function for using data retrieved from web form partially implemented