List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:May 30 1999 2:35pm
Subject:Re: emailing multiple checkbox results
View as plain text  
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
Thread
Compiling 3.22.22 under HP-UX 10.20Ralf Kraudelt25 May
  • emailing multiple checkbox resultsRobert Pruitt30 May
    • Re: emailing multiple checkbox resultsVivek Khera31 May
  • Re: emailing multiple checkbox resultsSasha Pachev30 May
  • Re: Compiling 3.22.22 under HP-UX 10.20Harald Wellmann1 Jun
  • Compiling 3.22.22 under HP-UX 10.20Michael Widenius2 Jun
Re: Compiling 3.22.22 under HP-UX 10.20Ralf Kraudelt1 Jun
  • Re: Compiling 3.22.22 under HP-UX 10.20Michael Widenius2 Jun