in reply to Re: Re: Hand Rolled CGI/Sendmail
in thread Hand Rolled CGI/Sendmail

You can't print user input to either the mail message or in the response HTML page? Are you sure you're getting the information, then? Try printing $query->Dump somewhere and see if the CGI object has in it what you expect.

As for error checking, using or die "error..." should do the trick:

my $query = new CGI or die "Couldn't create CGI object!\n"; open(MAIL, "|/usr/sbin/sendmail -t") or die "Couldn't start sendmail: $!\n"; close(MAIL) or die "Error closing sendmail: $!, exit status $?\n";

Replies are listed 'Best First'.
Re: Re: Re: Re: Hand Rolled CGI/Sendmail
by Lost (Novice) on May 07, 2004 at 21:00 UTC
    Thank you so much for your time and wisdom...I'll give it a try!
Re: Re: Re: Re: Hand Rolled CGI/Sendmail
by Lost (Novice) on May 07, 2004 at 21:35 UTC
    It still does not have the user entered text; and when I check open, close, the script still runs, (again no user entered text) and the same errors come up in my log file as before.
    For some strange reason the personal info requested is still not being sent. ARRGGHH.
    Could there be an issue on the server side as this is being run through an ssl for my client's visitors safety.