473,396 Members | 1,666 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,396 software developers and data experts.

uploading form data then submitting form to payment site

Hi all

Can anyone tell me how to submit a form to update its contents to a db
and then from the page the form is submitted to then submit another
form which is the payment processing data for a site such as paypal?

At the moment im having to have users submit the form and then click a
button on successful submission to take them through to payment
processing and i would like to streamline this process to just require
the submission of the details form.

kind regards

marc

Jul 31 '06 #1
5 1926

monomaniac21 wrote:
Hi all

Can anyone tell me how to submit a form to update its contents to a db
and then from the page the form is submitted to then submit another
form which is the payment processing data for a site such as paypal?

At the moment im having to have users submit the form and then click a
button on successful submission to take them through to payment
processing and i would like to streamline this process to just require
the submission of the details form.
You could use ajax to send the data to yourself and the have the form
submit itself as it normally would. Or you could have PHP take the
data that was resubmitted to it, create a new HTTP request based on
that, and then send the request to paypal or where-ever.

Alternatively, PayPal is supposed to it's own API which, although I've
never examined it, myself, should probably answer all your questions.
Check out: https://developer.paypal.com/

Jul 31 '06 #2
Thanks yawnmoth. the ajax idea sounds interesting. do u of good
tutorials or books on this particular aspect of ajax?

regards

marc
yawnmoth wrote:
monomaniac21 wrote:
Hi all

Can anyone tell me how to submit a form to update its contents to a db
and then from the page the form is submitted to then submit another
form which is the payment processing data for a site such as paypal?

At the moment im having to have users submit the form and then click a
button on successful submission to take them through to payment
processing and i would like to streamline this process to just require
the submission of the details form.

You could use ajax to send the data to yourself and the have the form
submit itself as it normally would. Or you could have PHP take the
data that was resubmitted to it, create a new HTTP request based on
that, and then send the request to paypal or where-ever.

Alternatively, PayPal is supposed to it's own API which, although I've
never examined it, myself, should probably answer all your questions.
Check out: https://developer.paypal.com/
Aug 1 '06 #3

monomaniac21 wrote:
Thanks yawnmoth. the ajax idea sounds interesting. do u of good
tutorials or books on this particular aspect of ajax?
This one seems pretty good:

http://www.lowing.org/ajax/

Knowing a bit about how HTTP works helps, as well.

Aug 2 '06 #4
monomaniac21 wrote:
Thanks yawnmoth. the ajax idea sounds interesting. do u of good
tutorials or books on this particular aspect of ajax?
Never use ajax or depend on client posting for payment related
things. You may try "Post2Host" scripts for posting via PHP. Always
there could be easier way to fix any issues; recheck your architecture.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Aug 2 '06 #5
monomaniac21 wrote:
Hi all

Can anyone tell me how to submit a form to update its contents to a db
and then from the page the form is submitted to then submit another
form which is the payment processing data for a site such as paypal?

At the moment im having to have users submit the form and then click a
button on successful submission to take them through to payment
processing and i would like to streamline this process to just require
the submission of the details form.

kind regards

marc
CURL is an option here.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 2 '06 #6

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

Similar topics

0
by: Terence Parker | last post by:
I am trying to connect an e-commerce system to a payment gateway (located in Hong Kong). The gateway takes values in the form of a simple form submit - however, the results (i.e. authorisation...
4
by: laredotornado | last post by:
Hi, I'm using PHP 4 and I am submitting some images in a form with <form name=addProductForm enctype="multipart/form-data" method=post action="add_product_response.php"> <input type=file...
6
by: Nothing | last post by:
I have a form that opens. On this form there is information along with a button that opens a payment form. The payment form opens and I enter a payment type, cash check or charge, a payment...
1
by: Mike | last post by:
I have a form that certain information on it. On this form there is a button that opens a payment form. When the payment form opens I enter a payment type, check cash charge, payment number,...
1
by: AndrewWithy | last post by:
We have an aspx page that is submitting a form that redirects to a 3rd party website to take a payment from the customer. We have had 19 instances over a 3 day period where the user never made it...
4
by: Mark Miller | last post by:
I've been trying to execute a javascript function just before submit on a form that contains an <input type="file"> input field and it isn't working. The reason I want to do this is the end users...
5
by: Chris | last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL. Meeting info and Meeting docs reside on 2 related tables in the db. Users may want to upload anywhere from 1 to 10 or...
6
by: smk17 | last post by:
I've spent the last few minutes searching for this question and I found an answer, but it wasn't quite what the client wanted. I have a simple online form where the user needs to fill out five...
8
by: nargis2009 | last post by:
Hi, I have been encountering problems with my web page which is supposed to send email, and wondered if anybody can help find error. Initially I had all codes in one page and on click of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.