|
|
 |
|
|
Pages: 1
E-mailing HTML pages
(Click here to view the original thread with full colors/images)
Posted by: TheHaunt
Hi there, I'm looking for a way to send a cgi generated HTML page. I have an html form set up which once submitted creates a page similar to the original but without the form fields. ie. Once they fill out the form, they're shown a filled out version of the same form. I need to be able to send the generated form to the owners of the site on which it will reside. The only problem is, the UNIX server hosting their pages don't allow sendmail access.
Is there any other way to do this? Maybe a mailto or something?
Posted by: illuminati
This is one way of doing it without sendmail:
The simplest way of handling form data is to use "mailto" as the action attribute in the beginning form tag. E.g.
<form action="mailto:email address" method="post" enctype="text/plain">
where the email address is an actual email address for the person who is to receive the data. The mailto action is the easiest to use because it does not use the CGI gateway at all. While it is the easiest, there are some disadvantages. Older browsers do not support the mailto action. There are privacy concerns. For example, the email address of the person receiving the data is available to anyone who views the source code of the page containing the form and information in the form is not encrypted. Also, depending upon the user's browser, when the user submits the form, they may see the form data in the outgoing email message in their email software. This may be confusing for some users, and requires them to actually send the message, which requires them to click another button before the data is actually sent.
<html>
<head></head>
<body>
<form action="mailto:support@ispots.net" method="post" enctype="text/plain">
<input type=text name=name value="">
<input type=submit name=submit value=submit>
</form>
</body>
</html>
|
|
|
|
|