473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Need to capture and save to db when paypal button clicked

Hello,
I have standard Paypal "Add to Cart" buttons.
I don't have a shopping cart on my site I use
the Paypal shopping cart.

I'd like to track when a user clicks on the "Add to Cart"
and save that info to a database.

I'm proficient at ASP coding but not sure
how to handle this.

I was thinking about sending the paypal form fields to another
asp page when the user clicks the "add to cart" button,
updating the db, then create another form in code and submit
to paypal.

I don't know if it's possible to submit a form in
code on the server.

Any suggestions are appreciated!
Nov 6 '08 #1
3 2011
DrBunchman
979 Expert 512MB
Hi Mike,

It is possible to submit a form using javascript which you could fire in the OnLoad event of your html body tag after your asp code has updated the db. The javascript is:

Expand|Select|Wrap|Line Numbers
  1. FormName.submit();
You'd need to pass all of your variables on in the same way that you received them i.e. through the querystring or as hidden variables through the form.

Hope this helps,

Dr B
Nov 6 '08 #2
jhardman
3,406 Expert 2GB
I was thinking paypal used querystring data, in which case it would be very easy to redirect from code.

Jared
Nov 7 '08 #3
DrBunchman
979 Expert 512MB
Yes, in that case after you've updated your db you could just use:

Expand|Select|Wrap|Line Numbers
  1. Response.Redirect "www.paypal.com?a=1&b=2" etc
Dr B
Nov 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Quinn | last post by:
When users clicked a unkown mime type link such as Zip on my website, a "Save/Open/Cancel" dialog box pops up. Is there a way to detect which button users clicked by using ASP? actually I only what...
2
by: Don Tucker | last post by:
Sorry, I attempted to tab in the previous post and accidentally posted prematurely. I am trying to use the WebBrowser control from Visual Studio 2005 to load a web page and display its HTML...
1
by: Mark | last post by:
Hello, I have a need to add a button column to a datagtrid, below is my code and although it does not produce an error, it also does not work, any help? I'm hoping that I can capture the button...
4
by: Mark | last post by:
Hi all, I have an ASP.NET application which I use to call paypal. I pass in the success URL as http://www.somedomain.com/success.aspx I go right through the paypal process and I finally get...
1
by: zirconx9 | last post by:
I am working on creating my first ajax enabled interface. I have some elements on the page that I want to become editable when the Edit button near them is clicked. What I have so far works...
5
by: C Watson | last post by:
Hi, I'm wondering if anyone can help me with AJAX in ASP.NET 1.1. I have a very specific feature that I would like to use it for. I have a rather long form that the users use to enter data...
1
by: carlos123 | last post by:
Hello, I am using BlueJ and I am totally lost on my newest programming assignment. Here is my source code, i would really appreciate if someone helped me out. This is my assignment. Ive done some of...
1
by: QCLee | last post by:
Hello Sir, Im here again asking for help. I have a form and a subform relate to HVAC Windward Table. i have a SAVE button on the form that when clicked it saves data on the HVAC Windward Table but...
0
by: nityaprashant | last post by:
hello.. i used ajax update panel in my cart form now i want to use paypal button for redirect online transaction because of ajax update panel round trip is not possible.. so paypal button gives...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.