Hello Perl Gurus, Do's anyone have any examples as to how to send a email reply back to my HTML if someone selects the my email value;ie ($form_name, $email) = split (/=/, $fields[1]) on my HTML form and if not to send a Thankyou.
Best Rgds; JA #!/usr/bin/perl -w # Get the submitted data $content_length = $ENV{'CONTENT_LENGTH'}; # Read user data into script variables read (STDIN, $form_data, $content_length); $form_data =~ s/%([\dA-Fa-f][\dA-Fa-f])/pack ("C",hex ($1))/eg; # Replace "+" sign with " "space char. $form_data =~ s/\+/ /g; # Split $form_data into name/value pairs: @fields = split (/&/, $form_data); # Init variables with form data values from following fields: ($form_name, $name) = split (/=/, $fields[0]); ($form_name, $email) = split (/=/, $fields[1]); ($form_name, $comments) = split (/=/, $fields[2]); # Send back user confirmation: print << "END_OF_REPLY"; Content-type: text/html <HTML> <HEAD> <TITLE>THANKYOU!! if no email entered </TITLE> </HEAD> <BR><BR><BR> <H1 ALIGN=CENTER>Thankyou $name !</H1> <BR> <BR> <H1 ALIGN=CENTER>See you next time!!</H1> <BR> <BR> </HTML> END_OF_REPLY <<...OLE_Obj...>> Juan Amore HPCS ENGINEERING 1-748-8789 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]