NATS4 Post URLs Usage
For example, with the Rebill Post URL field you can have NATS post information to your specified URL on each member rebill.
Continuing with the Rebill Post URL example, NATS allows you to use Smarty scripts at the URL page to further organize transaction information. The Smarty script here allows you to put your information into a log file:
<? $file = fopen("log.txt", "a"); fwrite($file, print_r($_REQUEST, true)); fclose($file); ?>
With each post back you have access to several fields, allowing a great deal of customization in recording user transactions and information.
Username Post URL vs. User Management URL
NATS can use both username post URLs and user management URLs to keep track of member details and availability. The main difference between the two is that a Username Post URL is specifically for checking username availability, and is only called on during initial signup to verify username availability. A User Management URL will get a variety of calls, including add, check, delete, expire, etc.
Username post URLs will send all of the following variables to your script:
Your script should echo "*exists*" if the username is already taken. This will refresh the page a prompt the surfer to choose a new username.