I've done some small changes to a tell-a-friend script (http://folk.uio.no/leikh/nyheter/script/mailpage.pl ).

First i took into account the help from javascript to read the url of a page in a second frame, and put this in a hidden form field, which then is read by the cgi-script.
(this form is here: http://folk.uio.no/leikh/nyheter/tipsnyhet.html )

(the actual stuff is at http://folk.uio.no/leikh/nyheter )

I then wanted the title of the html-page (which is sent in the body of the mail) to be printed in the subject field of the mail.

I added a use HTML::TokeParser; etc.....

I get no error-messages, but i don't get the title in the subject either...

But when i write the url directly into the $p = HTML::TokeParser->new(shift||"$FORM{'url'}"); , it works....

i.e: $p = HTML::TokeParser->new(shift||"http://folk.uio.no/leikh/nyheter/www.uio.no/offentlig/news/messages/1100368.html");

Anyone see what's wrong?