html - Insert data into database with jsp and go to next form -
i have 3 different forms(html) related each other, insert.jsp (process data submit db) , 1 table in database. need save data database , continue next form. next data save in same table. when try submit first form save table in database second form not save it.
i have 3 forms in html pages used tab menu , want save in same table in database. how solve it?
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>general</title> <link href="css/tabs.css" rel="stylesheet" type="text/css" /> </head> <body> <h1>general</h1> <ol id="toc"> <li class="current"><a href="general.html">general</a></li> <li><a href="contacts.html">contacts</a></li> <li><a href="address.html">address</a></li> <li><a href="loginform.html">login</a></li> </ol> <div class="content"> <h3>general form</h3> <form name="frmregister" action="insert.jsp" method="post"> <table> <tr> <td>id:</td> <td><input type="text" size="40" name="unit_id" /></td> </tr> <tr> <td>first name:</td> <td><input type="text" size="40" name="first_name" /></td> </tr> <tr> <td>last name</td> <td><input type="text" size="40" name="last_name" /></td> </tr> <tr> <td>department:</td> <td><input type="text" size="40" name="department" /></td> </tr> <tr> <td>position:</td> <td><input type="text" size="40" name="position" /></td> </tr> <tr> <td><input type="submit" name="submit" value="save" /></td> </tr> </table> </form> </div> </body> </html>
Comments
Post a Comment