473,545 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2065
=?Utf-8?B?ZnJlZW1hbm4 =?= wrote on 22 mei 2006 in
microsoft.publi c.inetserver.as p.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("t heInputNameA")

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='secondIno utA' 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.publi c.inetserver.as p.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("t heInputNameA")

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='secondIno utA' 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.publi c.inetserver.as p.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.Conten tType="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.publi c.inetserver.as p.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("t heInputNameA")

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='secondIno utA' 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.publi c.inetserver.as p.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.Conten tType="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.publi c.inetserver.as p.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.Conten tType="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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1627
by: has | last post by:
<BLUSH> Careless talk costs lives, as they say. In my case, a throwaway comment that Python could trounce the notoriously underpowered and undersupported AppleScript language for "serious number crunching". (And Perl could beat Python, and Fortran could kick all their butts, etc...) Well, you'd think me and the other guy would be old enough...
18
3018
by: Q. John Chen | last post by:
I have Vidation Controls First One: Simple exluce certain special characters: say no a or b or c in the string: * Second One: I required date be entered in "MM/DD/YYYY" format: //+4 How ??
4
1042
by: Greg Martin | last post by:
A couple snippets for you: Module ETSPSAttrMod1 Public LDAPAttribs As Scripting.Dictionary = New Scripting.Dictionary Sub Main() '<snip> * LDAPAttribs = GetLDAPAttribList() PopulateAttrs() End Sub
6
1635
by: prieditis | last post by:
I need some very basic advice. Let's suppose I need to do some mysql queries and updates to a database. I also need to dynamically update parts of a web page that the user is looking at based on the results of these queries. What are my options for server-side scripting languages and what you recommend. I've heard quite about about Ruby on...
10
4549
by: brooksr | last post by:
I know VB5/VBA very well but have not used VB to create web pages but need to do so. Can someone explain the purposes and differences between VBScript and VB.NET to create web pages? Also where do Visual Web Developer Express Edition and Microsoft Frontpage fit into the picture? It seems there are a bewildering array of choices in...
20
4233
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black...
0
912
by: wdhann66 | last post by:
I have enabled Java and scripting, but quite often I am informed that I must enable Java and/or scripting for the action to happen, such as to download, to be able to view a page, etc. As an example, this occurs whenever I try to go to Windows Update page. I still get automatic updates, demonstrating that I am a valid Windows user. This...
5
1949
WebMissy
by: WebMissy | last post by:
I have a forum all set up and everything works great. I decide to use IE 7 for the benefit of transparent PNG files. All is well with that but now my scripting for my colored scrollbars doesn't show the scrollbars. When I use IE6 the transparent PNG files don't show transparent but the scripting for the scrollbars work. Could someone please help...
8
1711
by: Mike Silva | last post by:
Hello all, I'm a longtime programmer (embedded with a smattering of desktop stuff as well) who knows very little about web programming. Right now I am developing the prototype of a multi-user application in MSVC++, but I think it would make more sense to redo the app as a web application (which I know almost nothing about, remember). From...
0
7487
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7680
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7934
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6003
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5349
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4966
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3459
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
731
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.