How to create login field properties depending on which radio button is checked
<p>I have a login page with 2 radio buttons "new account" and "existing user".  when "new account" is selected the "User" field auto populates with the text "New Account" and the "Password" field remains blank.  I need to grey out the fields so that they are uneditable when the "new account" radio button is selected, but still pass along the information in the fields because it is used to gain access to the database.  I can disable the fields to get the desired uneditable greyed out fields, but the information does not get passed along to the database.  </p>

<p>I have tried to fix this by creating two hidden fields (which auto populate with the needed information for database access) to take the place of the "user" and "password" field which allows me to disable the visible fields while "new account" radio button is clicked and which still passes along the new user login info that never changes.  This works fine until I try to login as an existing user, in which case my two hidden fields do not auto populate with the users input for their existing account information.</p>

<p>There may be a much simpler approach to fixing this problem, but all of my research and trials have not been successful yet.  I have been reluctant to ask this question as it seems so simple and frequently used approach for a login page, but all of my searching has not yielded any thing that has worked yet.  I appreciate any input or navigation in the right direction.</p>
