How to use cgi email by kindson munonye

75 %
25 %
Information about How to use cgi email by kindson munonye
Internet

Published on September 19, 2014

Author: kindsonmunonye

Source: slideshare.net

Description

This is an explanation of CGI Email and how to include it in in your web application.
Step by step guide

HOW TO USE CGIEMAIL BByy KKiinnddssoonn MMuunnoonnyyee The CGIEMAIL program allows account holders to set up feedback forms with the input from users being directed to the e-mail recipient of your choice, and formatted in any way you choose.

STEP 1: DESIGN THE FORM The first part of using the program is to design your form txtemail txtfname txtsurname txtsex txtcomment Note: Take note of the names you give to the textboxes and listbox

STEP 2: CREATE THE TEMPLATE If the form file 'feedback.html' you might call your second file 'feedback.txt' The name of the field to be substituted is placed in square brackets [ ] The first and second lines of the template to start with 'From:' and 'To:' respectively. Also, you MUST have the To: and the Subject: line followed by the blank line. Those three lines MUST be on the FIRST THREE lines. You cannot change the From: address. Example From: [txtemail] To: kmcodes@yahoo.com Subject: Testing Cgiemail FirstName: [txtfname] Surname: [txtsurname] Sex: [txtsex] Comment: [txtcomment]

STEP 3: DETERMINE THE FORM ACTION The form action determines what will be done when the filled form is 'submitted'. In the case of CGIEMAIL, the action is made up of two parts: •the first part points to the location of CGIEMAIL •the second part tells CGIEMAIL where to find the template <form method="post" action="/cgibin/cgiemail/feedback.txt"> the feedback.txt file is in your root directory

STEP 4: TEST THE FORM WITH CGIECHO Before you actually start using your form you can test it with a program called CGIECHO, CGIECHO works like CGIEMAIL except the it will display the results or error in a web page. To test your form: In your html file (feedback.html) replace cgiemail with cgiecho <form METHOD="POST" ACTION="/cgi-bin/cgiecho/www.atibenng.com/feedback.txt"> Open your page in a web browser Enter information in the fields and press the submit button.

STEP 5: SUCCESS AND FAILURE PAGE You can send the recipient to a second page or URL after they submit the form. If you wanted to send the user to another page after they have successfully completed the submitted the form, you would use this field in your form: <INPUT TYPE="hidden" NAME="addendum" VALUE="your message here"> Or better yet, include this field to generate a redirect to a page of your own design: <input type="hidden" name="success" value="http://www.atibenng.com/success.html">

STEP 5: SUCCESS AND FAILURE PAGE You can send the recipient to a second page or URL after they submit the form. If you wanted to send the user to another page after they have successfully completed the submitted the form, you would use this field in your form: <INPUT TYPE="hidden" NAME="addendum" VALUE="your message here"> Or better yet, include this field to generate a redirect to a page of your own design: <input type="hidden" name="success" value="http://www.atibenng.com/success.html">

Add a comment

Related presentations

Related pages

How to Display XML Data on a Webpage by Kindson Munonye ...

This video teaches you how to display ... How to use XML in HTML ... How to Implement User Registration and Login in Dreamweaver by Kindson ...
Read more

How to Implement User Registration and Login in ...

... //www.youtube.com ... How to Implement User Registration and Login in Dreamweaver by Kindson Munonye ... When to Use Dreamweaver ...
Read more

Kindson Munonye - Application Developer - ENI | XING

E-Mail. Telefon. Adresse. Messenger. Fax. Website. ... Ähnliche XING-Profile wie das von Kindson Munonye. Ibrahim Mohy Mahmoud Economist Economist ...
Read more

Family, Friends and Relatives

Email Address: A value is required. ... Copyright 2014. Curtesy of the Munonye Family. Innovation by Kindson ...
Read more

Part II - Navigating Records in Netbeans MS Access by ...

Email This BlogThis! Share ... Navigating Records in Netbeans MS Access by Kindson Munonye ... How to Implement User Registration and Login in Dreamweaver ...
Read more

Sending email using perl and sendmail. - Perlfect Solutions

Sending email using perl and sendmail. A very common task for a cgi script is to be able to inform a set of users ... use Email::Valid; my $query = new CGI
Read more

Kindson Munonye - Academia.edu

Kindson Munonye studies (Multi-) ... Join Kindson and 33,521,188 other researchers on ... Enter the email address you signed up with and we'll email you a ...
Read more