I want to have a script on one website and database on other website.
First website has 2 fields where they enter username and password. Then php posts username/password to other php file and that php does something and then somehow sends the data to my second website, where I insert username and password to MySql database.
So I can do everything except:
I have 2 variables in PHP file, and I want to send them to other webpage, which gets them with maybe $_POST ? Also posting should be automatic, so the script posts them itself not via button press. How to do it?
Is my question clear? I can explain.
Thanks.
Why can’t your script on your dummy website retrieve the data via $_POST and then call the script from your real website?
http://davidwalsh.name/execute-http-post-php-curl
Check that out. This way your can POST to your real website from your dummy site’s script, completely transparent to the user.
Hope that makes sense.