469,600 Members | 2,278 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Need help with asp scripting!

Can anyone provide example code showing how to send form results to a results
page, email and a comma delimited file? Notice that I need it going to all
three locations.

Details: I have forms created and working. The first form the user fills out
and submits. The form properties are set to Send to other: "Custom ISAPI,
NSAPI, CGI, OR ASP SCRIPTING. The method is "POST" and the action is
"secondpage.asp". I had to go this route because some calculations had to be
done before sending on to a secure website for credit card security.

The secondpage.asp form properites uses the send to other as well, with
action going to the secure credit card website. This website only allows a
certain number of form field to go over and we want to collect all data. Can
this be done using asp scripting? I thought about using a custom script to
email and file then redirect to secondpage.asp but didnt know if that would
work and a novice at asp scripting. As if you couldn't already tell!!

Any help would be greatly appreciated. Thanks in advance!
May 22 '06 #1
17 1772
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
Can anyone provide example code showing how to send form results to a
results page, email and a comma delimited file? Notice that I need it
going to all three locations.

Details: I have forms created and working. The first form the user
fills out and submits. The form properties are set to Send to other:
"Custom ISAPI, NSAPI, CGI, OR ASP SCRIPTING.
How can that be?

Form submitting is simple clientside HTML and cannot be specifically be
set for that.
The method is "POST" and
the action is "secondpage.asp". I had to go this route because some
calculations had to be done before sending on to a secure website for
credit card security.
A = request.form("theInputNameA")

Here the code to send an email using CDO, Jmail or whatever protocol is
used on your server

then sending the value of A to another file using form-post can only be
done IMHO!!! using a clientside page with hidden input value

<input name='secondInoutA' value='<%=A%>'>

and automatic submission by clientside script.

If the info could be sent as an querystring, the credit card company
could be called directly by the server using server.xmlhttp or alike.

Perhaps ASP could fake POST with specialized headers, Guru's??
The secondpage.asp form properites uses the send to other as well,
with action going to the secure credit card website. This website only
allows a certain number of form field to go over and we want to
collect all data. Can this be done using asp scripting? I thought
about using a custom script to email and file then redirect to
secondpage.asp but didnt know if that would work and a novice at asp
scripting. As if you couldn't already tell!!
I am not an exact novice, but I would not dare touch credit card code,
especially with this twitch of going back to the client, as this is an
security risk allowing the client to set different information in the
email as is sent to the cresit card company.
Any help would be greatly appreciated. Thanks in advance!


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 22 '06 #2


"Evertjan." wrote:
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
Can anyone provide example code showing how to send form results to a
results page, email and a comma delimited file? Notice that I need it
going to all three locations.

Details: I have forms created and working. The first form the user
fills out and submits. The form properties are set to Send to other:
"Custom ISAPI, NSAPI, CGI, OR ASP SCRIPTING.


How can that be?

Form submitting is simple clientside HTML and cannot be specifically be
set for that.
The method is "POST" and
the action is "secondpage.asp". I had to go this route because some
calculations had to be done before sending on to a secure website for
credit card security.


A = request.form("theInputNameA")

Here the code to send an email using CDO, Jmail or whatever protocol is
used on your server

then sending the value of A to another file using form-post can only be
done IMHO!!! using a clientside page with hidden input value

<input name='secondInoutA' value='<%=A%>'>

and automatic submission by clientside script.

If the info could be sent as an querystring, the credit card company
could be called directly by the server using server.xmlhttp or alike.

Perhaps ASP could fake POST with specialized headers, Guru's??
The secondpage.asp form properites uses the send to other as well,
with action going to the secure credit card website. This website only
allows a certain number of form field to go over and we want to
collect all data. Can this be done using asp scripting? I thought
about using a custom script to email and file then redirect to
secondpage.asp but didnt know if that would work and a novice at asp
scripting. As if you couldn't already tell!!


I am not an exact novice, but I would not dare touch credit card code,
especially with this twitch of going back to the client, as this is an
security risk allowing the client to set different information in the
email as is sent to the cresit card company.
Any help would be greatly appreciated. Thanks in advance!


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


The credit card data and processing are housed by another company which is
what makes this so complicated for me. The secondpage.asp uses the hidden
files as you mention and I had to use that secondpage just to bring over the
donation amount inputted by the donor because of the format for dollar
amount.

The form is located at http://www.uamont.edu/alumni/tinasform.asp if you
want to review, however you will not see all the code when viewing source.

The results page is located at http://www.uamont.edu/alumni/tinasform.asp
but you will not see all the code there either. Might give you a better
understanding of what I am doing or trying to do.

It has been quite a chore but as I mentioned earlier, the forms are working
as is except that I cannot send to a comma delimited file or email without
more scripting experience. So I've been told.
May 22 '06 #3
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
The credit card data and processing are housed by another company
which is what makes this so complicated for me. The secondpage.asp
uses the hidden files as you mention and I had to use that secondpage
just to bring over the donation amount inputted by the donor because
of the format for dollar amount.

The form is located at http://www.uamont.edu/alumni/tinasform.asp if
you want to review, however you will not see all the code when viewing
source.

Grafically it looks quite nice and shows you are not a beginner in HTML.

However I can and should not see the ASP code, since that is serverside.
The results page is located at
http://www.uamont.edu/alumni/tinasform.asp but you will not see all
the code there either. Might give you a better understanding of what I
am doing or trying to do.
This redirects to the same page I believe.
It has been quite a chore but as I mentioned earlier, the forms are
working as is except that I cannot send to a comma delimited file or
email without more scripting experience. So I've been told.


The pages are far to complex to experiment with, do I suggest you start
returning a comma delimited file generated by a small asp file.

<%
response.ContentType="text/plain"
For i = 1 to 999
response.write "Field number " & n & ","
Next
response.write "Field number " & 1000
%>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 22 '06 #4

freemann wrote:
"Evertjan." wrote:
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
Can anyone provide example code showing how to send form results to a
results page, email and a comma delimited file? Notice that I need it
going to all three locations.

Details: I have forms created and working. The first form the user
fills out and submits. The form properties are set to Send to other:
"Custom ISAPI, NSAPI, CGI, OR ASP SCRIPTING.


How can that be?

Form submitting is simple clientside HTML and cannot be specifically be
set for that.
The method is "POST" and
the action is "secondpage.asp". I had to go this route because some
calculations had to be done before sending on to a secure website for
credit card security.


A = request.form("theInputNameA")

Here the code to send an email using CDO, Jmail or whatever protocol is
used on your server

then sending the value of A to another file using form-post can only be
done IMHO!!! using a clientside page with hidden input value

<input name='secondInoutA' value='<%=A%>'>

and automatic submission by clientside script.

If the info could be sent as an querystring, the credit card company
could be called directly by the server using server.xmlhttp or alike.

Perhaps ASP could fake POST with specialized headers, Guru's??
The secondpage.asp form properites uses the send to other as well,
with action going to the secure credit card website. This website only
allows a certain number of form field to go over and we want to
collect all data. Can this be done using asp scripting? I thought
about using a custom script to email and file then redirect to
secondpage.asp but didnt know if that would work and a novice at asp
scripting. As if you couldn't already tell!!


I am not an exact novice, but I would not dare touch credit card code,
especially with this twitch of going back to the client, as this is an
security risk allowing the client to set different information in the
email as is sent to the cresit card company.
Any help would be greatly appreciated. Thanks in advance!


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


The credit card data and processing are housed by another company which is
what makes this so complicated for me. The secondpage.asp uses the hidden
files as you mention and I had to use that secondpage just to bring over the
donation amount inputted by the donor because of the format for dollar
amount.

The form is located at http://www.uamont.edu/alumni/tinasform.asp if you
want to review, however you will not see all the code when viewing source.

The results page is located at http://www.uamont.edu/alumni/tinasform.asp
but you will not see all the code there either. Might give you a better
understanding of what I am doing or trying to do.

It has been quite a chore but as I mentioned earlier, the forms are working
as is except that I cannot send to a comma delimited file or email without
more scripting experience. So I've been told.


If you need to learn how to use ASP, one of the better places for a
basic introduction is www.w3schools.com/asp. It's pretty basic, but
you will need to look at ASP Request, ASP File, ASP Forms and ASP Send
Email. If you want to have a go at some of the sample code there, but
get errors you don't understand, get back to us with the code you've
tried to use, the error it gave, and the line that gave the error. If
you have already tried to get some code working unsuccessfully, so the
same with that.

--
Mike Brind

May 22 '06 #5

freemann wrote:

The results page is located at http://www.uamont.edu/alumni/tinasform.asp


It's not actually - it's
http://www.uamont.edu/alumni/second_page-test.asp. One of the first
things you need to do is to verify that the form fields have been
completed in the form and to validate that data server-side before you
do anything else. I just clicked the submit button on the empty form
and it didn't provide me with any errors. You shouldn't rely on users
verifying or validating their own input. Some of them might have
malicious intent.

--
Mike Brind

May 22 '06 #6


"Evertjan." wrote:
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
The credit card data and processing are housed by another company
which is what makes this so complicated for me. The secondpage.asp
uses the hidden files as you mention and I had to use that secondpage
just to bring over the donation amount inputted by the donor because
of the format for dollar amount.

The form is located at http://www.uamont.edu/alumni/tinasform.asp if
you want to review, however you will not see all the code when viewing
source.


Grafically it looks quite nice and shows you are not a beginner in HTML.

However I can and should not see the ASP code, since that is serverside.
The results page is located at
http://www.uamont.edu/alumni/tinasform.asp but you will not see all
the code there either. Might give you a better understanding of what I
am doing or trying to do.


This redirects to the same page I believe.
It has been quite a chore but as I mentioned earlier, the forms are
working as is except that I cannot send to a comma delimited file or
email without more scripting experience. So I've been told.


The pages are far to complex to experiment with, do I suggest you start
returning a comma delimited file generated by a small asp file.

<%
response.ContentType="text/plain"
For i = 1 to 999
response.write "Field number " & n & ","
Next
response.write "Field number " & 1000
%>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Where does it put this comma delimited file? Should I put in on the first
page where the form is located or the second page? Sorry if it sounds like
I'm losing it, I am! Thanks so much for your help.
May 22 '06 #7
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
The pages are far to complex to experiment with, do I suggest you
start returning a comma delimited file generated by a small asp file.

<%
response.ContentType="text/plain"
For i = 1 to 999
response.write "Field number " & n & ","
Next
response.write "Field number " & 1000
%>
Where does it put this comma delimited file? Should I put in on the
first page where the form is located or the second page?


No, that was not what I ment. Since you expressed problems with making
comma delimited files with an ASP code, I suggest[ed] you experiment with
it in a small file.

Do not be too much focussed on the task at hand, but get to know the
aspects of ASP (-vbs ir jscript) coding you hink you do not understand.

After that the task will be far easier and your will be an expert in that
field.
Sorry if it sounds like I'm losing it, I am!
I don't think so.
Focus on a learning curve, test your ideas with dedicated small asp files.
Thanks so much for your help.


You are welcome.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 22 '06 #8
Will do that for sure. Thanks!

"Mike Brind" wrote:

freemann wrote:

The results page is located at http://www.uamont.edu/alumni/tinasform.asp


It's not actually - it's
http://www.uamont.edu/alumni/second_page-test.asp. One of the first
things you need to do is to verify that the form fields have been
completed in the form and to validate that data server-side before you
do anything else. I just clicked the submit button on the empty form
and it didn't provide me with any errors. You shouldn't rely on users
verifying or validating their own input. Some of them might have
malicious intent.

--
Mike Brind

May 22 '06 #9


"Mike Brind" wrote:

freemann wrote:

The results page is located at http://www.uamont.edu/alumni/tinasform.asp
It's not actually - it's
http://www.uamont.edu/alumni/second_page-test.asp.


I knew that, just copied and pasted the wrong one, sorry.
<One of the first things you need to do is to verify that the form fields have been
completed in the form and to validate that data server-side before you
do anything else. I just clicked the submit button on the empty form
and it didn't provide me with any errors. You shouldn't rely on users
verifying or validating their own input. Some of them might have
malicious intent.

The orginial form has some validation in it, this is just a test page for
trying out all the asp scripting. Notice the required fields, just didnt
bother with setting validation on the test form. After your post I went to
the orginial form to make sure. Thanks.


--
Mike Brind

May 22 '06 #10
I tried placing the code under the submit button code on the form page and it
displayed "field number" under the the submit button on the form page. I know
I'm not doing something right but will continue trying. Thanks again.

"Evertjan." wrote:
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
The pages are far to complex to experiment with, do I suggest you
start returning a comma delimited file generated by a small asp file.

<%
response.ContentType="text/plain"
For i = 1 to 999
response.write "Field number " & n & ","
Next
response.write "Field number " & 1000
%>


Where does it put this comma delimited file? Should I put in on the
first page where the form is located or the second page?


No, that was not what I ment. Since you expressed problems with making
comma delimited files with an ASP code, I suggest[ed] you experiment with
it in a small file.

Do not be too much focussed on the task at hand, but get to know the
aspects of ASP (-vbs ir jscript) coding you hink you do not understand.

After that the task will be far easier and your will be an expert in that
field.
Sorry if it sounds like I'm losing it, I am!


I don't think so.
Focus on a learning curve, test your ideas with dedicated small asp files.
Thanks so much for your help.


You are welcome.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

May 22 '06 #11
>> The form properties are set to Send to other:
"Custom ISAPI, NSAPI, CGI, OR ASP SCRIPTING.
How can that be?
It's a FrontPage thang.
Form submitting is simple clientside HTML and cannot be specifically be
set for that.


Evertjan, you really need to bone up on your FrontPage skills if you're
going to be answering questions in an ASP group :>);

Bob Lehmann

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.242... =?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
Can anyone provide example code showing how to send form results to a
results page, email and a comma delimited file? Notice that I need it
going to all three locations.

Details: I have forms created and working. The first form the user
fills out and submits. The form properties are set to Send to other:
"Custom ISAPI, NSAPI, CGI, OR ASP SCRIPTING.


How can that be?

Form submitting is simple clientside HTML and cannot be specifically be
set for that.
The method is "POST" and
the action is "secondpage.asp". I had to go this route because some
calculations had to be done before sending on to a secure website for
credit card security.


A = request.form("theInputNameA")

Here the code to send an email using CDO, Jmail or whatever protocol is
used on your server

then sending the value of A to another file using form-post can only be
done IMHO!!! using a clientside page with hidden input value

<input name='secondInoutA' value='<%=A%>'>

and automatic submission by clientside script.

If the info could be sent as an querystring, the credit card company
could be called directly by the server using server.xmlhttp or alike.

Perhaps ASP could fake POST with specialized headers, Guru's??
The secondpage.asp form properites uses the send to other as well,
with action going to the secure credit card website. This website only
allows a certain number of form field to go over and we want to
collect all data. Can this be done using asp scripting? I thought
about using a custom script to email and file then redirect to
secondpage.asp but didnt know if that would work and a novice at asp
scripting. As if you couldn't already tell!!


I am not an exact novice, but I would not dare touch credit card code,
especially with this twitch of going back to the client, as this is an
security risk allowing the client to set different information in the
email as is sent to the cresit card company.
Any help would be greatly appreciated. Thanks in advance!


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

May 23 '06 #12
Unless you are also doing server-side validation, client-side validation
exposes you to the risks that Mike mentioned.

Bob Lehmann

"freemann" <fr******@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...


"Mike Brind" wrote:

freemann wrote:

The results page is located at
http://www.uamont.edu/alumni/tinasform.asp
It's not actually - it's
http://www.uamont.edu/alumni/second_page-test.asp.


I knew that, just copied and pasted the wrong one, sorry.
<One of the first
things you need to do is to verify that the form fields have been
completed in the form and to validate that data server-side before you
do anything else. I just clicked the submit button on the empty form
and it didn't provide me with any errors. You shouldn't rely on users
verifying or validating their own input. Some of them might have
malicious intent.

The orginial form has some validation in it, this is just a test page for
trying out all the asp scripting. Notice the required fields, just didnt
bother with setting validation on the test form. After your post I went to
the orginial form to make sure. Thanks.


--
Mike Brind

May 23 '06 #13
On Mon, 22 May 2006 18:32:29 -0600, "Bob Lehmann"
<no****@dontbotherme.zzz> wrote:
in <u5**************@TK2MSFTNGP02.phx.gbl>
The form properties are set to Send to other:

"Custom ISAPI, NSAPI, CGI, OR ASP SCRIPTING.

How can that be?
It's a FrontPage thang.
Form submitting is simple clientside HTML and cannot be specifically be
set for that.


Evertjan, you really need to bone up on your FrontPage skills if you're
going to be answering questions in an ASP group :>);

Bob Lehmann


Oh c'mon Bob. Frontpage makes me gag. And Frontage has ~nothing~ to do
with ASP - it's off-topic in this group.

---
This posting is provided "AS IS" with no warranties and no guarantees either express or implied.

Stefan Berglund
May 23 '06 #14
> Oh c'mon Bob. Frontpage makes me gag. And Frontage has ~nothing~ to do
with ASP - it's off-topic in this group.
Uh, yeah... I know. I guess the smiley didn't convey the ribbing I was
giving Evertjan.

Bob Lehmann

"Stefan Berglund" <so**************@for.me> wrote in message
news:n0********************************@4ax.com... On Mon, 22 May 2006 18:32:29 -0600, "Bob Lehmann"
<no****@dontbotherme.zzz> wrote:
in <u5**************@TK2MSFTNGP02.phx.gbl>
The form properties are set to Send to other:
"Custom ISAPI, NSAPI, CGI, OR ASP SCRIPTING.
How can that be?


It's a FrontPage thang.
Form submitting is simple clientside HTML and cannot be specifically be set for that.


Evertjan, you really need to bone up on your FrontPage skills if you're
going to be answering questions in an ASP group :>);

Bob Lehmann


Oh c'mon Bob. Frontpage makes me gag. And Frontage has ~nothing~ to do
with ASP - it's off-topic in this group.

---
This posting is provided "AS IS" with no warranties and no guarantees

either express or implied.
Stefan Berglund

May 23 '06 #15
On Mon, 22 May 2006 21:15:19 -0600, "Bob Lehmann"
<no****@dontbotherme.zzz> wrote:
in <#3**************@TK2MSFTNGP02.phx.gbl>
Oh c'mon Bob. Frontpage makes me gag. And Frontage has ~nothing~ to do
with ASP - it's off-topic in this group.


Uh, yeah... I know. I guess the smiley didn't convey the ribbing I was
giving Evertjan.

Bob Lehmann


My bad. You're absolutely right!

---

Stefan Berglund
May 23 '06 #16
Stefan Berglund wrote on 23 mei 2006 in
microsoft.public.inetserver.asp.general:
Oh c'mon Bob. Frontpage makes me gag. And Frontage has ~nothing~ to do
with ASP - it's off-topic in this group.


Frontpage should be OT everywhere.

Starting web programming with frontpage is like
learning to drive with automatic gear. ;-'}

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 23 '06 #17
I like automatic gear, quick and easy to learn. Everyone around here wants
things done yesterday so the quickest the better. Well off to a meeting to
see how much trouble I'm in for not getting this to work yet.

I really appreciate all the help, Thanks.

"Evertjan." wrote:
Stefan Berglund wrote on 23 mei 2006 in
microsoft.public.inetserver.asp.general:
Oh c'mon Bob. Frontpage makes me gag. And Frontage has ~nothing~ to do
with ASP - it's off-topic in this group.


Frontpage should be OT everywhere.

Starting web programming with frontpage is like
learning to drive with automatic gear. ;-'}

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

May 23 '06 #18

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Q. John Chen | last post: by
4 posts views Thread by Greg Martin | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.