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 5 1958
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/
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/
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.
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/
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*******@attgl obal.net
=============== === This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 code, status, etc...) are not
returned to a separate HTML page (I am not given the option of defining a
resulting HTML page to which the results are sent) - but rather I must
receive them within the same page through a data stream somehow.
Does...
|
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 name='prodImg' id='prodImg'>
However, sometimes, the images fail to upload, even though the form
submits fine. When I try to print out the values from the
$_FILES array, I get
|
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 number like the cc number or check number, and the amount of
the payment.
I have a button on this form that when clicked adds the payment to a
table via a sql statement in vba which works fine.
|
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, check number or cc number, and then payment amount.
Next I click a button to process the payment which uses a sql
statement to insert the record into a payment table.
This all works fine. My problem is that when I click the custom close
|
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 to the 3rd party site but were
redirected back to the page that was submitted. These 19 instances came from
only 3 users, with 2 users repeating multiple times in succession. All 3
users were running WinXP with IE 6.0. The web servers are...
| |
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 will be uploading files that
are between 1 and 2 Meg. in size, and they are not too knowledgeable about
computers. I want to disable the form buttons so they can't hit them after
they hit the "upload" button. We're trying to prevent them from...
|
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 more documents to share/use
during a meeting presentation. What would be the most efficient way to
approach this? This is the logic I'm currently considering:
Page 1: Meeting Information input with link to a document upload page (this
page...
|
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
fields out of nine. The other four are already there and filled out
for the user. When they hit submit, all data is sent to us.
But, if they desire (for whatever reason) the user can possibly delete
what is already there and fill in something...
|
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 Submit it would send email.
But then I wanted to give a user an opportunity to go back and edit the entries if incorrect before submitting. I separted the codes into two pages.
On the second page when Submit button is clicked it should send email. But...
|
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,...
|
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...
| |
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |