Click to See Complete Forum and Search --> : Script to submit a form : How to prevent browsers to pop up e-mail privacy warning


Ron Wolpa
10-24-2003, 10:41 PM
Script to submit a form : How to prevent browsers to pop up e-mail privacy warnings

A very basic form is employed : <form name=formulario action="mailto:ron_wolpa@hotmail.com"
method=post enctype="text/plain"> form contents ......</form>;
(I donīt domine cgi- bin nor php , and even I if did it some servers where I host my files do not support both ,
thatīs the reason action is a simple mailto: )

It works fine but as visitor press button "SUBMIT" , the browser pops up a privacy warning
screen notifying visitor that his email will be disclosed ;
a 2nd pop up demands another click confirmation to send the information collected by the form ;

What I have in mind is a script to do the following :

1- to submit the form just by clicking submit button once

2- as visitor press on submit button , will be directed to another html document where will receive the usual
thanks and the confirmation message ; I find it necessary because as the basic form is above the message
is sent and the form fields are not cleared , not giving the visitor any confirmation ;

Thank you in advance for any hint.

rw

sciguyryan
10-25-2003, 04:16 AM
I am afraid that you cant stop the privacy warning - it is built in and, was put there for a perpous anyway.

AdamGundry
10-25-2003, 05:05 AM
Yes, if you want better control you will need to use a server-side mail script to do this, rather than relying on the browser's mailto action.

Adam

Ron Wolpa
10-25-2003, 01:32 PM
I think I will change the mailto action for a server side script ;
Can someone suggest me a well explained tutorial because I am not quite sure what script to put in server side ;

AdamGundry
10-25-2003, 02:58 PM
It depends on the language you are using. Here are some in the main languages:

http://www.christian-web-masters.com/articles/web_php-mail-form-2.html (PHP)
http://www.asptutorial.info/script/formtomail/ (ASP)
http://www.scriptarchive.com/formmail.html (Perl, well known so security may be an issue)

Adam