PDA

View Full Version : Web form submission



dbusguy
10-25-2005, 10:14 PM
Got a suggestion for a web e-mail form.
It works and sends comments but my e-mail (OE) receives a file "POSTDATE.ATT".
OE doesn't know how to open this, neither do I.
How do I open it?

Here's the code to send the form.

Once sent, another web page opens to say thank-you.




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Mailto Form with Thank You Page Redirect</title>

</head>
<body>

<div align="center">
<table border="4" width="40%" id="table1" cellspacing="5" cellpadding="4" bordercolor="#FF0000">
<tr>
<td>
<form method="POST" action="mailto:your@address.com" onsubmit=window.setTimeout("location.href='YOUR_THANK_YOU_PAGE.html'",5000)>
Your Name <input type="text" name="YourName" size="20"><br>
Your Email <input type="text" name="YourEmail" size="20"><br>
Your Message<br> <textarea name="YourMessage" rows="6" cols="25"></textarea><br>

<input type="submit" value="Send Email">
</form>
</td>
</tr>
</table>
</div>
</body>
</html>

Bogie
10-25-2005, 10:50 PM
Use a PHP script for the mail form.
#1 It is far more secure and does not expose your mailto address
#2 Is much more configurable.

Use this PHP FORMMAIL script (http://www.dtheatre.com/scripts/)
It also ensures that no one else can use your email script, as the recipient email address is embedded in the script.

dbusguy
10-26-2005, 09:13 AM
Thanks Bogie. It's not for my site, it's for my sister and her site is on a free service that doesn't have PHP. The above will serve her needs if I can figure how to open the file "POSTDATE.ATT".

reiver
10-26-2005, 09:33 AM
A quick check reveals... .ATT = AT&T Group 4 Bitmap (fax)

dbusguy
10-26-2005, 09:55 AM
this is where the form came from

http://www.bravenet.com/resources/newsletters/?newsletter=tips

Tim
10-26-2005, 10:06 AM
that's a very bad method to use dbusguy as Bogie pointed out. It's both insecure, and very unreliable. What services if any are available on the free service?

dbusguy
10-26-2005, 12:01 PM
it's just web hosting - free with not many extras
Right now she just has a link
mailto:info@domain.com?subject= Information
But a form looked interesting that would then change to a page saying thank-you
The site is just basic html

Tim
10-26-2005, 12:50 PM
yea unless you have some sort of sendmail access via cgi or php etc., using mailto in a form is very hit and miss. Different browsers will also react differently. If it's a business and a form is desired consider the 6/month some servers charge for a fuller webhosting service.

Bogie
10-26-2005, 12:55 PM
Doesn't the free host have a set script/method for webforms? Most do.

dbusguy
10-26-2005, 02:45 PM
not that I can find on this one Bogie

Bogie
10-26-2005, 03:10 PM
You might want to use one of the remote scripts from some place like Bravenet (http://www.bravenet.com/webtools/emailfwd/)