Click Here!

Welcome To EAGLE.CA - Northumberland's Largest Internet SOLUTION Provider

 

• • • • •

cyberbuzz on CHUC 1450, daily at 11:20 a.m.
Listen to cyberbuzz daily
at 11:20 a.m. on
CHUC 1450
brought to you by
eagle.ca

• • • • •

Official Internet supplier to
The Capitol Theatre
Capitol Theatre, Port Hope

• • • • •

Web site solutions by
eagleBusiness Solutions

• • • • •

eagle.ca is a member of:

Canadian Association of Internet Providers
Canadian Association
of Internet Providers

Member - Canadian Federation of Independent Business
Canadian Federation
of Independent Business

• • • • •

Best experienced with
Internet Explorer 3.0 or higher needed for this site.
Click here to start.

• • • • •

eagle.ca
Terms & Conditions of Use

Renew your eagle.ca
account online

visa1_60x38_a.gif (516 bytes) ccbar.g



if (3999 bytes)

• • • • •


 

back3_400.gif (1653 bytes)


























EAGLE.CA - Customer Support Centre

Personal Home Pages

 Creating Forms to Email you back

 The purpose of this page is to show you how to insert a form into your html page that will email you back the completed form using our generic form handler in our Web Server's cgi-bin directory. 

 NOTE 1: This is only accessible by clients of eagle.ca. If you have a domain hosted at eagle.ca you will need to contact us so we can tell formmail to accept requests from your domain.

 NOTE 2: Since the spammers have decided it would be fun to send out junk mail using this script as well, you also have to tell us what email address you want your form's results emailed to if it isn't an eagle.ca email address. What fun!

 This page assumes you have some knowledge of creating forms in HTML. If you don't you should read up on creating forms and then come back here.

 I'm including two simple methods of collecting data from your viewers and emailing that info back to your email address at eagle.ca.

Method 1

  • sends the completed form to (demo@eagle.ca)
  • the subject is (Test Form 1)
  • after submitting, displays (http://www.eagle.ca/~demo/thanks.html)
  • includes their IP number and web browser information in email message
  • uses pre-made (realname) and (email) variables
  • and I put three test fields in for fun
Use the following sample source code:

      

<form method="POST" action="http://www.eagle.ca/cgi-bin/formmail.pl">

<input type="hidden" name="recipient" value="demo@eagle.ca">

<input type="hidden" name="subject" value="Test Form 1">

<input type="hidden" name="redirect" 

  value="http://www.eagle.ca/~demo/thanks.html">

<input type="hidden" name="env_report" 

  value="REMOTE_HOST,HTTP_USER_AGENT">



Full name: <input type="text" name="realname">

Your email Address: <input type="text" name="email">



Question 1: <input type="text" name="field1">

Question 2: <input type="text" name="field2">

Question 3: <input type="text" name="field3">

<input type="submit" value="Submit Test 1">  
<input type="reset" value="Reset">

Which produces the following looking form:
Your Full Name: 



Your Email Address: 



Question 1: 



Question 2: 



Question 3: 







   

And here is the email message returned:

Date sent:        Thu, 16 May 1999 18:37:56 -0400

To:               demo@eagle.ca

From:             gerry@eagle.ca (Gerald T. Freymann)

Subject:          Test Form 1



Below is the result of your feedback form.  It was submitted

by Gerald T. Freymann (gerry@eagle.ca) on

Thursday, May 16, 1999 at 18:37:56

--------------------------------------------------------------

field2: answer 2



field1: answer 1



field3: answer 3

--------------------------------------------------------------

REMOTE_HOST: notebook.eagle.ca

HTTP_USER_AGENT: Mozilla/2.01 (Win95; I)

Method 2

  • sends the completed form to (demo@eagle.ca)
  • the subject is (Test Form 2)
  • after submitting, displays (Test Form 2 Results) title
  • after submitting, shows (http://www.eagle.ca/index.html) return url
  • after submitting, shows (Back to eagle.ca's Home Page) as return link
  • after submitting, uses (BG_rainbow.jpg) as the background
  • includes their ip and web browser information in email message
  • uses premade (realname) and (email) variables
  • makes email and comment required
  • and I put two test fields in for fun
Use the following sample source code:

      

<form method="POST" action="http://www.eagle.ca/cgi-bin/formmail.pl">

<input type="hidden" name="recipient" value="demo@eagle.ca">

<input type="hidden" name="subject" value="Test Form 2">

<input type="hidden" name="env_report" 

  value="REMOTE_HOST,HTTP_USER_AGENT">

<input type="hidden" name="required" value="email,comment">

<input type="hidden" name="title" value="Test Form 2 Results">

<input type="hidden" name="return_link_url" 

  value="http://www.eagle.ca/index.html">

<input type="hidden" name="return_link_title" 

  value="Back to eagle.ca's Home Page">

<input type="hidden" name="background" 

  value="http://www.eagle.ca/~demo/BG_rainbow.jpg">



Full name: <input type="text" name="realname">

Your email Address: <input type="text" name="email">

Enter a Comment: <input type="text" name="comment">

Test field 2: <input type="text" name="field2">

Test field 3: <input type="text" name="field3">
<input type="submit" value="Submit Test 1">  
<input type="reset" value="Reset">

Your Full Name: 



Your Email Address: 



Enter a Comment: 



Test field 2: 



Test field 3: 







   




 This sends an email message back that looks like this:

Date sent:        Thu, 16 May 1999 18:39:31 -0400

To:               demo@eagle.ca

From:             gerry@eagle.ca (Gerald T. Freymann)

Subject:          Test Form 2



Below is the result of your feedback form.  It was submitted

by Gerald T. Freymann (gerry@eagle.ca) on

Thursday, May 16, 1999 at 18:39:31

--------------------------------------------------------------



field2: test field 2



field3: test field 3



comment: this is my comment



--------------------------------------------------------------

REMOTE_HOST: notebook.eagle.ca

HTTP_USER_AGENT: Mozilla/2.01 (Win95; I)

 And that is how you may use formmail.pl in your HTML pages! 

 Return to Personal Home Pages.

 Return to the EAGLE.CA - Customer Support Centre.


Proud to be Canadian!© 1995-2000 EAGLE.CA Proud to be Canadian!
Cobourg office:
Northumbria House
26 Chapel Street
Cobourg, ON
Canada
K9A 1H9
(905) 373•9313
Port Hope office:
2nd Floor
26 Ontario Street
Port Hope, ON
Canada
L1A 2T6
(905) 885•1971

Mailing address:
P.O. Box 220, Cobourg, ON  K9A 4K5

Toll Free • 1•877•37•eagle
FAX • (905) 373•1801

Account or General Information:
accounting@eagle.ca
Technical Support:
support@eagle.ca

Web Design & eCommerce
business@eagle.ca

 

Portions of this site updated November 20, 2001