[thelist] Perl/CGI Solution Needed
dante
dante at vianet.net.au
Mon Aug 27 01:40:28 CDT 2001
G'Day All,
I've been experimenting with using a HTML form as part of a (very) basic XML
content management system & I'm stuck :)
I need it to run on Apache so the solutions that I've found using ASP aren't
applicable.
Ideally, what I need is a solution using Perl/cgi that can:
- Upload an image to a folder on the server the server & generate
image name data (eg: "mycat.gif").
- Convert the HTML form output to populate the XML template below
then append it to an XML document on the server - within the
<library> elements & including the image name data ( <image_link> ).
Is this possible?
Has anyone encountered anything similar to this?
Is there a better method?
Is it possible to use javascript for a client-side solution?
The form is online here: http://www.vianet.net.au/~dante/xml/input_form.html
[*IE5+ only]
The XML template:
----------------------------------------------------------
<?xml version="1.0"?>
<library>
<!-- -->
<book type="" style="" variant="" id="">
<title></title>
<sub_title></sub_title>
<author first_name="" middle_name="" last_name=""></author>
<illustrator first_name="" middle_name=""
last_name=""></illustrator>
<image_link></image_link>
<description></description>
<subject></subject>
<isbn></isbn>
<genre></genre>
<publisher></publisher>
<issue></issue>
<date day="" month="" year="" />
</book>
</library>
----------------------------------------------------------
All comments are appreciated : )~
Thanks,
dante
Perth, Western Australia
dante at vianet.net.au
www.vianet.net.au/~dante
More information about the thelist
mailing list