<input onchange="submitForm('csv_table', 'csv_table.cgi', this.value, 'file.csv', ';')"> <script> function submitForm(par1, par2, par3, par4, par5, par6) { alert(par5); } </script>