Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI based html template parser

Status
Not open for further replies.

inta

Technical User
Aug 2, 2001
13
AU
I am looking for a CGI script written in Perl that can do the following

Accept any number of Name/Value pairs as inputs
One NV Pair must be a template name and location

eg. ?template=../myvirtuallocation/template.shtml

so the script would be invoked using the following,

webaddress/cgi-bin/scriptname.cgi?template=../mylocation/template.shtml&name=value ...etc

The template specified in the NV pair needs to be parsed by the script looking for strings matching the following

<% value=name %>

Where name is the name of the NV pair

This string is to be replaced with the value of the matching NV pair

When the parsing is complete, the script needs to deliver the parsed page to the server for viewing by the requesting browser.

Thankyou for your assistance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top