Poate e mai simplu asa: decat peticit, se poate da un quick dirty example de script perl care sa faca urmatoarea chestie:

Sa accepte 3 argumente (email-adresa de mail, cod-combinatie de litere si cifre,realname-Nume Prenume) si sa apeleze sendmail mai departe a.i. sa trimita un mail catre o adresa prestabilita (si doar una) in care la from sa fie adresa de mail luata ca parametru si in body sa contina codul dat ca parametru scriptului?

Multumesc mult.

Florin

On Apr 13, 2009, at 8:18 PM, Drin Camadi wrote:

Poti sa ne dai codul din test.cgi, mai ales partea unde se preiau
datele ? ( my @params = $cgi->param(); )

Ai si un exemplu mai jos :

 #!/usr/bin/perl        

     use strict;
     use CGI;
     my $cgi = new CGI;
     print
       $cgi->header() .
       $cgi->start_html( -title => 'Feedback Form',
                         -author => 'Author',
                         -style => 'stylecgi.css') .
       $cgi->h1('Feedback Form') . "\n";
     my @params = $cgi->param();

     foreach my $parameter (sort @params) {
       print "$parameter" . $cgi->param($parameter) . "<br>\n";
     }

     print $cgi->end_html . "\n";
     exit (0);

_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug



This message might contain confidential information and is intended only for 
the individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message, which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version.
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui