Hi everyone,
Im new to web programming and i need some help, I have something like this:
<td><label>User (Login): </label></td>
<td><input class="textbox" autofocus="true" type="text" maxLength="7" name="cUser" id="cUser" /></td>
</tr><tr></tr>
<td><label>First Name: </label></td>
<td><input class="textbox" type="text" maxLength="20" name="cFname" id='cFname' value=""/></td>
</tr><tr></tr><tr>
<td><label>Last Name: </label></td>
<td><input class="textbox" type="text" maxLength="30" name="cLName" id="cLName" /></td>
</tr><tr></tr>
<td><label>Password: </label></td>
<td><input class="textbox" type="password" maxLength="15" name="cPass" id="cPass" /></td>
</tr><tr></tr>
.
.
.
I'm actually working in netbeans 7.0.1 using just .jsp and .java and using postgresql 9.1 as my DB. Already defines some .java to get the connection and other class to handle users.
What i'm trying to do here and i have no clue to do so, is to validate if the username is available and dont exist already in my DB. This is a new user register at a website im creating.
What should i do so the moment the user enter his username, and if it is not available show a message as an alert maybe that the user is not available and must choose another.
Please help