I have a template for my ebay auctions. I want to make a form that I can type in the variable information (ie title, description, images) and generate the html script to include those variables.How do I generate html script by using a form?
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.How do I generate html script by using a form?
You may like to take a tutorial at
http://referencedesigner.com/tutorials/html/html_1.php
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment