title: how to insert value into mysqldatabase from form using JDBC in java programming?
body: <pre><code>//public void doInsert1() {
      try {
          //create sql query
          String val1=this.getUsername();
          String val2=this.getPassword();
          System.out.println(val1);
          System.out.println(`Val2);
          String query = "INSERT INTO tbl_user(user_name,pass_word) VALUES('val1','val2')";
  </code></pre>
  
  <p>}</p>
  
  <p>IS CODING USING INHERITANCE MACHANISM BUT IT DIDN'T INSERT VALUE FORM FORM BUT IT NORMALLY DID INSERT VAL1 AND VAL2 INTO MYSQL DATABASE.</p>