| | |
POST data from one domain to another ?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 496
Reputation:
Solved Threads: 0
Hi,
Let's say i have a form in www.111.com/form.html where user can submit name and surname with POST action.
Can we send the POST data (name and surname) from www.111.com/form.html to www.222.com/process.php to be processed?
Thanks
Let's say i have a form in www.111.com/form.html where user can submit name and surname with POST action.
Can we send the POST data (name and surname) from www.111.com/form.html to www.222.com/process.php to be processed?
Thanks
Hi.
Yes this thing works... Infact, the most famous payment gateway PAYPAL works on this principle...
If you want to make your transaction more secure, use CURL. Using this, you can get your data processed from other server.
Otherwise, this simple POST also works good.
Yes this thing works... Infact, the most famous payment gateway PAYPAL works on this principle...
If you want to make your transaction more secure, use CURL. Using this, you can get your data processed from other server.
Otherwise, this simple POST also works good.
Form on www.111.com/form.html
PHP Syntax (Toggle Plain Text)
<form action="http://www.222.com/process.php" method="post"> <!-- rest of form here --> </form>
Hi,
Why to get the CURL Library individually and install it.. You can use XAMPP/WAMP type integrated environment apps, that gives you almost everythng.. They have built in curl extensions for windows (you might have to enable it from php.ini file).
And for the CURL learning/tutorial, check out the links below.. they are good for beginners. You can switch to advanced version later on.
http://www.higherpass.com/php/Tutori...emote-Servers/
http://blog.unitedheroes.net/curl/
Why to get the CURL Library individually and install it.. You can use XAMPP/WAMP type integrated environment apps, that gives you almost everythng.. They have built in curl extensions for windows (you might have to enable it from php.ini file).
And for the CURL learning/tutorial, check out the links below.. they are good for beginners. You can switch to advanced version later on.
http://www.higherpass.com/php/Tutori...emote-Servers/
http://blog.unitedheroes.net/curl/
•
•
Join Date: Apr 2008
Posts: 496
Reputation:
Solved Threads: 0
For example: how do i check if username=1 and password=2 in check.php page and return TRUE or FALSE?
PHP Syntax (Toggle Plain Text)
<? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.mysite.com/check.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt(CURLOPT_USERPWD, '[username]:[password]') $data = curl_exec(); curl_close($ch); ?>
![]() |
Similar Threads
- PodComments.com, MakeGreetings.com, SocialStack.com, Lots More - Only $35 Each (Domain Names for Sale)
- Form data & Back button (PHP)
- Fread + Ssl (PHP)
Other Threads in the PHP Forum
- Previous Thread: Photo pieces compiled in table
- Next Thread: PHP page redirection
| Thread Tools | Search this Thread |
ajax apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion regex remote script search server session sessions sms smtp soap source space sql strip_tags survey syntax system table tutorial undefined update upload url validator variable video virus votedown web window.onbeforeunload=closeme; xml youtube






