469,327 Members | 1,280 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

submit a form from an email...

Greetings!

I am successfully generating an HTML-formatted email using ASP and a
NewMail object. It works great. The content of the email includes a
simple HTML form that posts to an asp page.

THE PROBLEM:
The form in the email functions properly (can be submitted, opens a
browser and redirects to the "post-to" asp page) but the form data is
not making it. i.e.....

at the far end in the "post-to" asp page....
request.form("someField") is empty

I imagine it has to do with encryption but can't find any info on the
subject. Any thoughts are greatly appreciated.

Thank you kindly,
Cynthia-
Jul 19 '05 #1
1 3144
"cynth-"wrote:
Greetings!
Howdy!
THE PROBLEM:
The form in the email functions properly (can be submitted, opens a
browser and redirects to the "post-to" asp page) but the form data is
not making it. i.e.....

at the far end in the "post-to" asp page....
request.form("someField") is empty

I imagine it has to do with encryption but can't find any info on the
subject. Any thoughts are greatly appreciated.

If you have enctype= something then take it out. enctype="text/plain" would
be used if you're action is action=mailto:me@mydomain.com Also, hopefully
you mean method="post" and not method="post-to".

This is all you need:
<form id="aspform" name="aspform"
action="http://mydomain.com/asp/myformresults.asp" method="post">

....unless you're validating input then you would change it to something
like:

<script type="text/javascript">
function validate() {
var iname=document.getElementById("yourname");
if(!iname.value) {
alert("Please type in your name");
iname.focus();
return false;
} else {
document.aspform.action="http://mydomain.com/asp/myformresults.asp";
document.aspform.submit();
return true;
}
}
</script>

<form id="aspform" name="aspform" method="post" onSubmit="return
validate()">
<input id="yourname" name="yourname" type="text" value="" />

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by rjames.clarke | last post: by
7 posts views Thread by amerar | last post: by
2 posts views Thread by jasonhartsoe | last post: by
13 posts views Thread by deko | last post: by
23 posts views Thread by mosesdinakaran | last post: by
12 posts views Thread by Daniel Klein | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.