473,785 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need to capture and save to db when paypal button clicked

2 New Member
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 2028
DrBunchman
979 Recognized Expert Contributor
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 Recognized Expert Specialist
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 Recognized Expert Contributor
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
8486
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 to record the "valid" click -- when Open/Save was clicked. Thanks ahead. Quinn
2
7952
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 content in a text box on a Form of a Windows Application. I have a button on the Form that invokes the following code when clicked: webBrowser1.Url = new Uri("http://www.microsoft.com"); textBox1.Text = webBrowser1.DocumentText;
1
2572
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 click in the datagrid itemcommand event but figure having the button show first would be a good thing. I can get a hyperlink column to show with no problem but it causes the page to refresh which is what I'm trying to avoid. Thanks for any help....
4
2446
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 the "Return to merchant" button on the PayPal screen. If I look at the source code of the Paypal page the form action looks like
1
1161
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 great in Firefox and Opera. Of course IE is giving me problems. What happens when the edit button is clicked is that the values that were being displayed area read from the TD cells by the innerHTML attribute. The innerHTML of that cell is then...
5
2664
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 during a phone call with a client. Since it's long, I put six Save buttons down the length of the form and asked the users to save often. When they click the Save buttons, the data is saved to a central database and a text label is changed to say...
1
1333
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 the work like entering all the data in for the combo boxes. But I dont know how to get the combo box to display, and I dont know how to write and read to a file, im SOo lost. If someone could just PLEASE take a look at the code and try to fix the...
1
6121
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 not in a subform. When manually inputing data into subform it saves by work order on the HVAC Windward Table in subdatasheet even if how many times i add data in one work order. Sir, Is it posible that when i clicked on the SAVE button in the form it...
0
1668
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 error like "server enabled trace, response.write, redirected with update panel" actually i have 3 panel on cart form, i want to open payapl button's panel at last.if i put paypal panel in update panel then error occurs like above..& if i put...
0
9645
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10151
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8973
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6740
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2879
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.