Creating the User Registration Table
|
<html> <head> <title>Creating a Table in MySQL Using JSP</title> </head> <%@ page import = "java.sql.*" %> <body> <% try {
}
} |
The formatting on the table create string should help you to see the fields. The following table summarizes these and gives a brief description. |
Control Type | Name | Corresponding Field | Description |
user_id | Auto incrementing integer which will be the primary key. | ||
text box | txt_first_name | first_name | Control and field corresponding to the first name of the user. This will make use of a variable length character field. |
text box | txt_last_name | last_name | Control and field corresponding to the last name of the user. This will make use of a variable length character field. |
text box | txt_email | Control and field corresponding to the email address of the user. This will make use of a variable length character field. | |
password text box | txt_password | password | Control and field corresponding to the email address of the user. This will make use of a variable length character field. |
checkbox | chk_php | php_interest | The user will check this checkbox if they profess an interest in PHP. This is characterized in a varchar field. |
checkbox | chk_jsp | jsp_interest | The user will check this checkbox if they profess an interest in JSP. This is characterized in a varchar field. |
checkbox | chk_mysql | mysql_interest | The user will check this checkbox if they profess an interest in MySQL. This is characterized in a varchar field. |
select/option | sel_credit_card | credit_card | The user will select which of the credit cards they
will use. The options are
This is characterized by a variable length character which will store which type of credit card they've selected. |
radio button | rb_education | education | The user will check one of the radio buttons to
represent their level of education. The radio buttons are
This is characterized by a variable length character which will store which type of credit card they've selected.
|