how do i do this form>?

admin

Administrator
Staff member
How do i make a form that when they complete it the information is sent to my e-mail address?<!--content-->it all depends on how you want to do it. either use a mailto: or server side scripting (eg.. php,asp,cgi)<br />
<br />
for mailto: it is like this<br />
<br />
<br />
<br />
<form action="mailto:"[email protected]" method="post"><br />
<br />
form contents here<br />
<br />
</form><br />
<br />
if you want server side scripting, post a thread in that forum and when can write something up for you.<!--content-->Originally posted by scoutt <br />
it all depends on how you want to do it. either use a mailto: or server side scripting (eg.. php,asp,cgi)<br />
<br />
for mailto: it is like this<br />
<br />
<br />
<br />
<form action="mailto:"[email protected]" method="post"><br />
<br />
form contents here<br />
<br />
</form><br />
<br />
if you want server side scripting, post a thread in that forum and when can write something up for you. <br />
<br />
I'm going to add in here that to get the responses readable using mailto you might want to add in after Method="post" the words enctype="text/plain" :)<!--content-->thanks Mary, I always forget that. :D<!--content-->Originally posted by barry42184 <br />
How do i make a form that when they complete it the information is sent to my e-mail address? The way scoutt mentioned is that it will open the visiotrs default mail program. If you don't want to do this, try a remotely-hosted cgi script from: <!-- w --><a class="postlink" href="http://www.bravenet.com">www.bravenet.com</a><!-- w --> It's extremely easy to setup and configure! ;)<!--content-->Ok cool it works fine but when i enter information and hit the order button IE comes up with an error that says<br />
<br />
"This form is being submitted using e-mail. Submitting this form will reveal your e-mail address to the recipient, and send the form data without encrypting it for privacy. You may continue or cancel this submission."<br />
<br />
It had OK and CANCEL for options, if i hit ok it doesnt send anything to my address.<!--content-->Thats not an error message, its a standard security warning to give users the chance to cancel a form that sends their email address to the recipient of the form.<br />
<br />
Why you are not recieving the data the form sends after clicking the OK button is not related to the warning message. Probably something wrong in the coding of the form.<br />
<br />
Kevin<!--content--><html><br />
<head><br />
</head><br />
<body><br />
<br />
<form action="mailto:"[email protected]" method="post" enctype="text/plain"> <br />
<p>Song names<br />
<input type=text name=names><br />
<p>Name<br />
<input type=text name = yourname><br />
<p>Address<br />
<input type=text name=address size=30><br />
<p>City<br />
<input type=text name=city><br />
<p>State<br />
<input type=text name=state size=2 maxlength=2><br />
zipcode: <input type=text name=zip size=5 maxlength=5><br />
<p><input type=submit value="order CD"><br />
<input type=reset value ="start over"> <br />
<br />
</form> <br />
</body><br />
</html><br />
<br />
Tell me if u see anything wrong, thanx<!--content-->Ah... as Kevin has surmised, the problem in question is the ACTION value using MAILTO. That may cause a security message to appear in certain browsers/versions/settings as you've discovered.<br />
<br />
For a much more global acceptance, you will have to resort to using a CGI instead of the MAILTO.<br />
<br />
If you do not have personal CGI capabilities, using the Bravenet service is free and easy to setup as previously mentioned by Mark.<br />
<!-- m --><a class="postlink" href="http://www.bravenet.com">http://www.bravenet.com</a><!-- m --><br />
<br />
If you do have CGI capabilites, you will probably find a good source of resources through this site...<br />
<!-- m --><a class="postlink" href="http://www.cgi-resources.com">http://www.cgi-resources.com</a><!-- m --><!--content-->Originally posted by barry42184 <br />
<html><br />
<head><br />
</head><br />
<body><br />
<br />
<form action="mailto:"[email protected]" method="post" enctype="text/plain"> <br />
<p>Song names<br />
<input type=text name=names><br />
<p>Name<br />
<input type=text name = yourname><br />
<p>Address<br />
<input type=text name=address size=30><br />
<p>City<br />
<input type=text name=city><br />
<p>State<br />
<input type=text name=state size=2 maxlength=2><br />
zipcode: <input type=text name=zip size=5 maxlength=5><br />
<p><input type=submit value="order CD"><br />
<input type=reset value ="start over"> <br />
<br />
</form> <br />
</body><br />
</html><br />
<br />
Tell me if u see anything wrong, thanx <br />
yup you have a stray quote in the action line.<br />
should be like this<br />
<br />
action="mailto:[email protected]"<!--content-->
 
Back
Top