Robert Pruitt wrote:
>
> Hi,
>
> I have a form, a portion of which reads, '<input type=\"checkbox\"
> name=\"order[]\" value=\"$number -- $description\" unchecked>
>
> My backend script retrieves and displays this data like this --
> $partcount = count($order);
> reset($order);
> for ($i = 0; $i < $partcount; $i++){
> $key = key($order);
> $val = $order[$key];
>
> echo $val . "<BR>";
> next($order);
> }
> Everything works very nicely.
>
> I'd also like to email the results. This is where I'm lost.
>
> Assistance appreciated.
>
> Robert
>
open(MAIL, "|/usr/sbin/sendmail -t") or die "Could not open mail pipe";
print MAIL <<EOT;
From: $from
To: $to
Subject: $subject
Special message from President Clinton. Tomorrow Miscrosoft will be
required to
make the source code of WinNT pulically available with detailed
compilation instructions.
EOT
close(MAIL);
--
Sasha Pachev
http://www.sashanet.com