Perl Code Required

David Looke (davidl@microway.com.au)
Tue, 13 Aug 1996 17:29:11 +1300


Being new to Perl, I'm having trouble getting libwww to do what I 
want, which is:

I have a html fill-out form for customers to complete. I want the
form output to go to a Perl script which emails me the fields and
then displays the next html page. I'm also using mailto.pl which
handles the emailing well. 

My problem is that libwww and other libraries I've tried return the
html document but all relative references on that page stay relative
and therefore end up wrong. The relative references need to be
converted into absolute references by the script. (I don't want to
have to convet the html docs themselves to absolute references as
that doesn't suit the way we're using these documents).

I was wondering whether any Perl expert would be willing to write 
some Perl code to do this for me (and at what cost?)--probably 
utilising mailto.pl and wwwlib.

The new script needs to take a POST from the form containing a number
of fields including some that are required, email those fields to me
(this so far can all be done via mailto.pl) and then the next html
document displayed. The url of the next html document needs to be
passed to the script (mailto uses $contine_url) and also a base url
needs to be added to the relative url of the next html document. 

Any relative reference found in the next html document would be
converted into an absolute reference using the passed base_url and
continue_url. 

I'd want the script to be flexible enough that it also handles
varying case within the next html doc and also leaves any existing
absolute reference alone. 

Any takers??

Thanks,

David Looke,
Managing Director,
MicroWay Pty Ltd.

*********************************************************************
David Looke, MicroWay Pty Ltd -- Programming Tools
PO Box 84, Braeside VIC 3195. Australia.
Tel: (03) 9580-1333, Fax: (03) 9580-8995
email: davidl@microway.com.au, www.microway.com.au
*********************************************************************