Index
Test Drive
Documentation
Download
Support
Feedback
History
Home
|
Requirements
- Perl 5
- Web server configured to run CGI scripts
- CGI.pm
Installation
- Copy util_replace.pl to your CGI directory
- Make sure it is executable
- Load util_replace.pl in your browser
and give it a try!
Template Format
Creating a template to use with this script is simple.
Basically, you create an HTML file of how you want your output to look. Then, everywhere that you want to insert data provided by the user, you insert tags that look like ASP syntax.
For example, this is a simple HTML template:
<HTML>
<HEAD>
<TITLE><%TITLE%></TITLE>
</HEAD>
<BODY>
<H1><%TITLE%></H1>
<HR>
<%CONTENT%>
</BODY>
</HTML>
|
This is how it would work:
- You would type this into an editor and save it on your local computer
- Load util_replace.pl in your browser
- Type the filename of your saved file into the box and submit the form
- The utility would generate a form with two input boxes - one for TITLE and one for CONTENT
- You enter data into each field and submit this form
- The utility then takes the data you entered and inserts it into your original template where your special tags are
- You can then save the source of your resulting document wherever you need to!
|