in reply to what code do i need to extract form data
A good place to start is the tutorial at use CGI or die;