I am trying to create a form where the program will take the values from the fields on the form and input them into a database. I know how to do this in the Visual Studios environment but I am unsure of how to do this in Java.
Connection conn = getConnection(); Statement stmt = conn.createStatement(); stmt.executeUpdate("create table Customers (Customerid int, FirstName CHAR(15), LastName CHAR(15), MI CHAR(1), Address CHAR(15), Phone CHAR(15), City CHAR(15), State CHAR(15), Zip CHAR(10));");
I am unsure of how to get each separate text field to correspond with each value to input into the database. I've looked into the netbeans tutorials however they only walk you through how to do that on web forms. Would this be the same?
Any information on this would be great!