PAP has a standard signup form here, but it allows you to make your own signup form in HTML and place it anywhere you want.
The HTML signup form must be sent to /affiliates/signup.php after signup. Then there are two modes of operations.
If you don't include the errorUrl,successUrl hidden fields, the form will be processed by standard signup form.
If there are some errors, they will be displayed in the standard signup form.
If you want to be sent back to the HTML signup form in case of error, you have to add hidden field errorUrl to the form and this file have to be PHP!
Then the error messages and all values will be sent back by POST method to the URL you specified in errorUrl hidden field.
Possible HTML form parameters (as hidden fields)
URL where the data should be sent in case of error. It should be URL address of the HTML signup form
URL where the data should be sent when signup is successful. It will override any setting from merchant panel. It can be "thank you for signup" page.
Data returned to successUrl or errorUrl
all (optional) error messages grouped together in on string
list of fields
list of signup form fields returned with the value sent and (optional) error message.
username - contains value entered by user
usernameError - contains error message for this field
firstname - contains value entered by user
firstnameError - contains error message for this field