Home General Knowledge Course / Lesson Electronic / Embedded Systems WebBoard e Cards Free Download About / Webmaster Room
ค้นหา:
KP FormMail 1.0
 
  - ห้องรับรอง(4)
     + มุมความรู้(4)
     + บทเรียน(2)
     + อิเล็กโทรนิค(4)
     - Download(2)
        + สมุดเยี่ยม (GuestBook)
        + FormMail

.

Include this code to your HTML file..

<form action="KPFormMail.php" method=post>
<input type=hidden name=recipient value="youremail@company.com">
...  your form ...
<input type=submit value="Send Data">
</form>
KPFormMail Sample Form..

There is only one field that is required...

This form take action to KPFormMail.php
recipient (Require):
realname:
Email: subject: env_report:
             REMOTE_HOST     - Sends the hostname making a request.
             REMOTE_ADDR     - Sends the IP address of the remote host making
                               the request.
             REMOTE_USER     - If server supports authentication and script
                               is protected, this is the username they have
                               authenticated as. *This is not usually set.*
             HTTP_USER_AGENT - The browser the client is using to send the
                               request.

             There are others, but these are a few of the most useful.  For
             more information on environment variables, see reference at
			http://www.vwin.co.th/ or any cgi programming reference.
required (Input the Require Field):
det:

missing redirect :
(the page to redirect to in case of missing the required field)
print_blank_fields :
redirect:
(the page to redirect to after the form is submitted)
template (blank for none):
template that use to format the mail result. (see default for sample)
Use <field> to refer to your form data.
Ex

From : <email>

will show

From : krerk@vwin.co.th
order (1-enable sort by fieldname):
title :

This script require PHP 3.0 or higher to operate.
Copy Right © Krerk Piromsopa.
Get your free copy from www.vwin.co.th.
Host By vwinet.com
Copy Right © Krerk Piromsopa. (April 2001).