How to do Forms with NCKCN CGI MAILTO executable for Windows Servers
This example is the hypertext content of a typical form:
<FORM ACTION="/scripts/mailto.exe" METHOD="post"> <input type="hidden" NAME="sendto" VALUE="firstname.lastname@example.org"> <Input type="hidden" Name="server" value="nt1.nckcn.com"> <INPUT TYPE="hidden" NAME="subject" value="Web Page Form"> <INPUT type="hidden" NAME="resulturl" value="http://www.nckcn.com/homepage/username/formdone.htm"> <PRE> <B>Your details:</B> Name: <INPUT NAME="uname" SIZE=30> Position: <INPUT NAME="title" SIZE=30> Company Name: <INPUT NAME="company" SIZE=40> E-Mail: <INPUT NAME="email" SIZE=30> Press <INPUT TYPE="submit" VALUE="Submit"> and your request will be processed or <INPUT TYPE="reset" VALUE="Clear"> to start again. We aim to respond within 24 hours. </PRE>
When the user presses the SUBMIT button, the information is sent to the WWW server which calls /scripts/mailto.exe. MAILTO will read the details sent and format a message which looks something like:
From: A N Other <email@example.com> To: <firstname.lastname@example.org> Subject: Web Page Form Date: Thu, 22 Jun 99 13:22:28 GMT-0600 The following form contents were entered on 22nd Jun 95 Date = 22 Jun 95 13:22:26 subject = Web Page Form uname = A N Other title = Network Administrator company = Elephants Inc email = email@example.com
This is a list of fields that the MAILTO will automatically use. All other fields will be decoded and placed into the mail message.
If neither resulturl nor resulttxt are displayed, you will see the default "Thank You" message. The user will have to use the "Back" button as there will be no links for further navigation.
|If you have support or general questions
please email us at: firstname.lastname@example.org
If you have any comments or questions about the NCKCN System, you can reach NCKCN by e-mail at: email@example.com
|This page last updated 01/16/12 01:32:08 PM
©1996-2012 North Central Kansas Community Network