In main.html i will have two text fields one is the name of the html page i need to create and another is number of text fields, once i enter number(for example three) in main.html, within the same page dynamically 3 text boxes should be created using javascript... now if i enter text in to those three text boxes like name,age,email then it should send those to server and dynamically create a database table with those fields and it should generate a html page with the mentioned name in main.html and it should also create text boxes for the given values in main.html(i.e name,age and email).

if i enter the values in generated html page it should be stored in mysql...

Which server-side scripting language are you using?

im using jsp n servlets