You could do this with either Java or JavaScript. If you use Java you
would need to have your program on the server which can take the form
submission data and create the new HTML page. This could be done either
with a JSP (Java Server Pages) or servlets. If you do it with Java you
will need to submit the fields as part of the query string and then get
that data from the location.search property.