Thread View: demon.ip.www
3 messages
3 total messages
Started by VEGANLINE
Mon, 22 Jul 2002 18:11
referring back from the Demon mailform script
Author: VEGANLINE
Date: Mon, 22 Jul 2002 18:11
Date: Mon, 22 Jul 2002 18:11
23 lines
1955 bytes
1955 bytes
Hullo all: I know nothing of Perl, except this: Demon's mail script refers back to the homage like this: print "return to our <A HREF=\"/\">home page</A>, if you want.<P>"; This almost works except that the resulting page has an awkward url: http://cgi.www.veganline.com which I do not understand. The help file suggests change to /docs/www.yourdomain.co.uk/your-file or /docs/www.veganline.com/index.htm I suppose, but my guestimated attempts, even uploaded in ASCII as Demon suggest, lead to the "server error" response. Can someone who knows Perl let me in on the secret? Could you give an example of what works, or a clue as to how to adapt it? If so, thanks very much. john -- http://www.veganline.com - John Robertson - veg@animal.nu Freepost LON 10506, London SW14 1YY 0800 458 4442 fx 020 8286 9947
Re: referring back from the Demon mailform script
Author: michael lefevre
Date: Mon, 22 Jul 2002 20:56
Date: Mon, 22 Jul 2002 20:56
29 lines
1940 bytes
1940 bytes
In article <cH6G25GbrEP9IA+1@musonix.demon.co.uk>, VEGANLINE wrote: > Hullo all: I know nothing of Perl, except this: > Demon's mail script refers back to the homage like this: > > print "return to our <A HREF=\"/\">home page</A>, if you want.<P>"; > > This almost works except that the resulting page has an awkward url: > http://cgi.www.veganline.com which I do not understand. > > The help file suggests change to > > /docs/www.yourdomain.co.uk/your-file > or > /docs/www.veganline.com/index.htm I suppose, but my guestimated > attempts, even uploaded in ASCII as Demon suggest, lead to the "server > error" response. > > Can someone who knows Perl let me in on the secret? Could you give an > example of what works, or a clue as to how to adapt it? > If so, thanks very much. the cgis are stored under a different host name (the cgi.www.blah...). what you need to do is refer back to the full URL of your site: print 'return to <a href="http:\/\/www.veganline.com/\">home page</a>.'; (and using ' to quote the string avoids having to quote each '"') -- michael
Re: referring back from the Demon mailform script
Author: {denis}
Date: Tue, 23 Jul 2002 01:31
Date: Tue, 23 Jul 2002 01:31
42 lines
2439 bytes
2439 bytes
On Mon, 22 Jul 2002 19:11:39 +0100, VEGANLINE <veg@musonix.demon.co.uk> wrote: >Hullo all: I know nothing of Perl, except this: >Demon's mail script refers back to the homage like this: > >print "return to our <A HREF=\"/\">home page</A>, if you want.<P>"; That should refer back to the root of the site that called the script, ie creating an anchor using an absolute reference within the site of "/" >This almost works except that the resulting page has an awkward url: >http://cgi.www.veganline.com which I do not understand. > >The help file suggests change to > >/docs/www.yourdomain.co.uk/your-file >or >/docs/www.veganline.com/index.htm I suppose, but my guestimated >attempts, even uploaded in ASCII as Demon suggest, lead to the "server >error" response. > >Can someone who knows Perl let me in on the secret? Could you give an >example of what works, or a clue as to how to adapt it? >If so, thanks very much. If it's case of changing the cgi, then maybe: <A HREF=\"/\">home page</A> needs to be changed to something like: <A HREF=\"http://www.veganline.com/index.htm\">home page</A> Rgds Denis -- Denis McMahon / +44 7802 468949 / denis@pickaxe.net sulfnbk is not a virus, see the symantec virus encyclopaedia! Now restocking killfile, new entrants welcome: trolls, spam, xpost cascades, OT ads, top posters & terminally clueless!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads