brij_theinvader Posted May 25, 2007 Share Posted May 25, 2007 HI, THANKS FOR REVIEWING MY POST. I WANT TO POST THE INFORMATION FROM MY FORM AFTER TAKING INPUT FROM THE USERS TO A WEBPAGE( PAYMENT PROCESSING SITE) WITHOUT VISTING THAT PAGE. I MEAN THE WEBPAGE SHOULD NOT BE DIRECTED TO THAT WEBPAGE(PAYMENT PROCESSING SITE). THE RECEPIENT WEBPAGE (payment processing page) RECEIVES THE INFORMATION THROUGH "GET" METHOD OF THE FORM. SO WE CAN USE "GET" METHOD IN OUR FORM. Can you please tell me how i can do this. The flow of pages should be appearing to the user, such that he should not feel as if he is posting data to some other website( payment processing site). WAITING FOR REPLY. THANKS AND REGARDS. Quote Link to comment https://forums.phpfreaks.com/topic/52974-how-to-post-the-data-from-a-form-to-a-web-page-of-other-site-without-going-to-it/ Share on other sites More sharing options...
chigley Posted May 25, 2007 Share Posted May 25, 2007 cURL For future posts: capital letters don't make me more enticed into helping at all; and I doubt it does with anyone else either Quote Link to comment https://forums.phpfreaks.com/topic/52974-how-to-post-the-data-from-a-form-to-a-web-page-of-other-site-without-going-to-it/#findComment-261661 Share on other sites More sharing options...
brij_theinvader Posted May 25, 2007 Author Share Posted May 25, 2007 hi, Thanks for reply, chigley, Actually i use EasyPhP 1.8, So, how can i make this work on it. I mean how and which curl set up should i download and where should i place it. Please comment on it as much as u can. Quote Link to comment https://forums.phpfreaks.com/topic/52974-how-to-post-the-data-from-a-form-to-a-web-page-of-other-site-without-going-to-it/#findComment-261678 Share on other sites More sharing options...
chigley Posted May 25, 2007 Share Posted May 25, 2007 In your php.ini file, find this line: ;extension=php_curl.dll And change it to: extension=php_curl.dll Never used EasyPHP but it may have a GUI to enable the PHP addons, have a look around. Quote Link to comment https://forums.phpfreaks.com/topic/52974-how-to-post-the-data-from-a-form-to-a-web-page-of-other-site-without-going-to-it/#findComment-261681 Share on other sites More sharing options...
brij_theinvader Posted May 25, 2007 Author Share Posted May 25, 2007 hi, My project details is this . Can u please comment on it : I have a not for profit web site that needs to accept payment for donation. The web server we have has php plugins and a mysql db and the payment processer has a web page for us set up which we need to mask with our own form here. The URL for the payment processor is below. http://www.nycharities.org/donate/c_donate.asp?CharityCode=1708 The pages in the above process work as follows: Page 1) Donation amount and Charity Name and Contact Preferences Page 2) Contact information and Honor Information Page 3) Payment information (the response to this page contains the transaction ID) On our site you will build a single page that accepts: 1) 5 options for donation as radio buttons ($50, $100, $250, $500, $1000). 2) All Contact Information (first name, last name, address (2 lines), city, state, zip, email, phone) 3) Honor information (name of honor). The Charity Name and contact preferences will be standard for all submissions. The page will store all data in the database (you will create a normalized schema and install it), and post this information to the payment processing site. A new page will be presented to the browser requesting the credit card information. This page will store the data in the database and post back to the payment processor (same session), and recieve the transaction ID in the response, and store this in the database and then present that in a new page to the user. Waiting for reply. Quote Link to comment https://forums.phpfreaks.com/topic/52974-how-to-post-the-data-from-a-form-to-a-web-page-of-other-site-without-going-to-it/#findComment-261730 Share on other sites More sharing options...
chigley Posted May 25, 2007 Share Posted May 25, 2007 Yes cURL is what you're after. I'm not prepared to code it all for you, as that won't help you learn anything. You can use cURL to send the post variables to the external payment site and then receive the output and output it on your page ~ all without the visitor knowing about the external site! Quote Link to comment https://forums.phpfreaks.com/topic/52974-how-to-post-the-data-from-a-form-to-a-web-page-of-other-site-without-going-to-it/#findComment-261732 Share on other sites More sharing options...
brij_theinvader Posted May 25, 2007 Author Share Posted May 25, 2007 thanks for what all you did. What if i pay you through paypal for the script and make you a permanent online employee of my company? Actually i am also learning php, but very new to this. Most part of the project will be done by me. I just want some script of cURL done. This is because cURL is not working in EASY PHP and though i have PHP 5.1 installed i don't know how to run the script to it. So, you are just required to guide me on this project. Are you ready for it? Quote Link to comment https://forums.phpfreaks.com/topic/52974-how-to-post-the-data-from-a-form-to-a-web-page-of-other-site-without-going-to-it/#findComment-261739 Share on other sites More sharing options...
chigley Posted May 25, 2007 Share Posted May 25, 2007 Add me on MSN: charlie@charlie-h.co.uk Quote Link to comment https://forums.phpfreaks.com/topic/52974-how-to-post-the-data-from-a-form-to-a-web-page-of-other-site-without-going-to-it/#findComment-261746 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.