Need help with asp scripting!

F

freemann

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!
 
E

Evertjan.

=?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.
 
F

freemann

Evertjan. said:
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:


How can that be?

Form submitting is simple clientside HTML and cannot be specifically be
set for that.


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??


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.

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.
 
E

Evertjan.

=?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
%>
 
M

Mike Brind

freemann said:
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.
 
F

freemann

Evertjan. said:
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:


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.


This redirects to the same page I believe.


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? Sorry if it sounds like
I'm losing it, I am! Thanks so much for your help.
 
M

Mike Brind

freemann said:

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.
 
E

Evertjan.

=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
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.
 
F

freemann

Will do that for sure. Thanks!

Mike Brind said:
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.
 
F

freemann

Mike Brind said:

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.
 
F

freemann

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. said:
=?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
microsoft.public.inetserver.asp.general:
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.
 
B

Bob Lehmann

The form properties are set to Send to other:
"Custom ISAPI, NSAPI, CGI, OR ASP SCRIPTING.

It's a FrontPage thang.

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
 
B

Bob Lehmann

Unless you are also doing server-side validation, client-side validation
exposes you to the risks that Mike mentioned.

Bob Lehmann
 
S

Stefan Berglund

On Mon, 22 May 2006 18:32:29 -0600, "Bob Lehmann"
in said:
It's a FrontPage thang.


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.
 
B

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.

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

Bob Lehmann
 
S

Stefan Berglund

On Mon, 22 May 2006 21:15:19 -0600, "Bob Lehmann"
in said:
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!
 
E

Evertjan.

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. ;-'}
 
F

freemann

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top