| | |
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: 510
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: 510
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
Views: 929 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email encode error file files folder form forms function functions google howtowriteathesis href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple multipletables mysql oop parse paypal pdf php problem provider query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table template tutorial update updates upload url validation validator variable video web xml youtube






