Dec 1, 2000, 9:14 AM
Post #3 of 4
you were right, when I ran it simply as an html file it worked; however, my problem remains. I was returning the html from my cgi program because I was inserting a cgi-generated string (i.e. $outLine) in the body of the email.
I guess I can't see why I can't do it from cgi as I'm simply returning an html page; shouldn't the email work the same whether the page was generated by cgi or not?
The way I want it to work is this: on the first web page the user types a string into an input form and then selects the "I want to send email" checkbox. The user then clicks on the "encode" button, whereby they are then presented with a cgi-generated page which contains email input fields (these don't appear if the "I want to send email" checkbox wasn't checked); also on this page is the text they had previously entered, although now it has been transformed into an encrypted string. When the user enters the necessary information into the email input fields and clicks on "send" this encrypted string is emailed to the recipient.
The long and short of it is that if I can't handle the email code within my cgi program then I don't see how to:
1) selectively display the email input fields based on the value of the "I want to send email" checkbox.
2) include the (cgi-generated) encrypted string as the body of the message.
Are there other ways to solve these problems?