Can I assign an HTML input field two unique names?

  • Thread starter Thread starter annuvin
  • Start date Start date
A

annuvin

Guest
Here is the scenario. I have a drop down list with 4 values. Below that I have a username text input field and a password text input field. Then a login button. Depending on the value of the drop down list, the username and password value will be passed to a different https site via form submit. Each one of the 4 sites need different name values for username and password passed. One is userId, one is user_name, etc. Is there a way via HTML or JavaScript that I can get the form submit to send different name values depending on what is in the dropdown?
 
Back
Top