You pass parameters to your Perl script either via POST or GET. You "read" them by utilizing the CGI module. See
here for documentation. Documentation is your utter resource for all things Perl. You might as well post the HTML code, but be careful because it is slightly OT (Off Topic).