Hello to all on the perl email list.

I am new to this list and being a newbie, don't have much experience or 
knowledge of perl but have managed to modify my first simple perl script which 
sends information via email from an html form that I created and which gets 
filled out by the user.  I was having problems with the script for months 
whereby the script was sending the email but very little of the information 
from the form would come through in the email until the other day when I was 
going through  my script and noticed some print mail commands in my script and 
realized that an additional hand full  print mail commands needed to be 
inserted.  My script is doing what I want it to do now but I would like the 
perl script to somehow display an additional message on the users screen that 
they are sitting in and am not sure how to do this.

My perl question is, is there a simple way to display some text/message on the 
users screen such as

your information has been sent.
Thank You for joining the alumni community!
We hope to see you at the next reunion.

once they submit the form and if so, how would I accomplish the task of 
displaying a message.  What code would I need to insert into my script.

So when the user submits the information that they filled out on the form they 
remain on the same page.  I would like the screen to look something like the 
following:

Updating Your Alumni Mailing Address Information Page.

First name:

Last name:

Married ladies: please enter your maiden name here.

Street address:

Apartment number: if applicable.

City/Town:

Province/State:

Postal code:

Email address:

Home phone number: with area code - E.G. 201-555-1234

send button

reset form button

your information has been sent.
Thank You for joining the alumni community!
We hope to see you at the next reunion.

I tried to setup a small text file in the same directory on the server where 
the script file email.pl resides called message.txt with the message contained 
in the file and attempted to use the print command in my script to display the 
message but obviously it didn't work.  I also tried to use the open statement 
to read in the file and have it display on the users screen but that didn't 
work either.

What am I doing wrong?

I have tried to find some information reading perl documentation but haven't 
been able to find anything yet that remotely clearly explains how to display a 
message if all possible.  I also tried to find information on the internet 
using google but not having to much luck.

Any help?  I would appreciate any help with my perl script problem.
Thanks,
David

Reply via email to