Affiliate Registration Script
I need a script (php preferred) that works with an affiliate company’s supplied API. Very basic, 2 field’s… User Name and E-Mail are passed over along with the registering user’s IP address and API login, password and campaign ID.
Data must be sent via http POST to http:/api_join_basic.php
If the account is successfuly created, an ‘OK’ message is returned, otherwise an error message is returned explaining what went wrong.
I need the script to validate the username and email and post to the affiliate API. Then read the response from the affiliate (either OK or error message) and redirect the user to a specific page based upon the response page of the API.
In formation provided by affiliate can be found in the attached pdf file.



