Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I generate html script by using a form?

0
Posted

How do I generate html script by using a form?

0

There are many different ways depending on which technologies you are using (e.g. java, php etc.). But essentially you create an html form for your inputs which will submit to a server side script that you have on your server. This server side script will pull out the variable values from your form submission and then replace them in your template. You may do this simply by using String handling and some regex, this would be the quick and dirty way (in general this completely depends on what server side technologies are in play). You may pretty easily do this with Java using a templating engine like Velocity. The script will then return the html source with all the variables replaced back to the browser where it will be rendered.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123