freemann wrote:[color=blue]
> "Evertjan." wrote:
>[color=green]
> > =?Utf-8?B?ZnJlZW1hbm4=?= wrote on 22 mei 2006 in
> > microsoft.public.inetserver.asp.general:
> >[color=darkred]
> > > 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.[/color]
> >
> > How can that be?
> >
> > Form submitting is simple clientside HTML and cannot be specifically be
> > set for that.
> >[color=darkred]
> > > 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.[/color]
> >
> > 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??
> >[color=darkred]
> > > 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!![/color]
> >
> > 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.
> >[color=darkred]
> > > Any help would be greatly appreciated. Thanks in advance!
> > >[/color]
> >
> >
> >
> > --
> > Evertjan.
> > The Netherlands.
> > (Please change the x'es to dots in my emailaddress)
> >[/color]
>
> 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.[/color]
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