Hi,

You need to establish your headers before you print anything.

Lisa Wolfisch Nyman  <[EMAIL PROTECTED]>  IT Warrior Princess
"Life is too short to wear ugly underwear."
Get the facts at http://quickfacts.census.gov/

On Mon, 10 Sep 2001, Peter Bosmans wrote:

> But if i comment the 3 lines between "comment out", then this script
> will work. (i see the generated HTML-page at my browser)
> Does anybody see what the problem is ?
> Thanks in advance
>
> #!/usr/local/bin/perl -w
>
> use CGI;
>
> $query = new CGI;
> $teamleader = "me.myself\@my_island.see";
>
> $mailfile = "/home/myself/mymail.".$$;
>
> # Comment out these lines and this perl script will work
> open (mailfile,">>".$mailfile);
> print mailfile "Originator : ".$query->param('ORIG')."\n";
> close (mailfile);
> # End comment out
>
> #unlink ($mailfile);
>

Move this up before you print anything.

> print $query->header('text/html');
> print $query->start_html('Input CR','me.myself\@my_island.see');


> print $query->h1('Your request is sended to the teamleader
> :'.$teamleader);
> print $query->end_html();
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to