Renewal Reminder Service
| Renewal Reminder Service | |||||||||||||||||
|
The Renewal Reminder Service is to allow Mensa Websites to pop-up reminders to Annual Members to pay their dues so their Membership does not lapse. If a member's membership is about to expire in March of the present year, a message can be displayed using this service from January. As soon as the member pays his dues (the database is updated with this information), the reminder will stop. The Renewal Reminder Service is invoked by calling one of the naming files : http://indianmensa.org/db/services/reminder/reminder.php or http://indianmensa.org/db/services/reminder/reminderXML.php.
Example
To find if the user with Membership No 11000012 is about to expire in March, you will make a call as follows : The resulting page is a plain text file with 2 lines. The first line gives the result code and the second line gives a description. Below is a list of the codes and their descriptions
In case of the last message the website can pop-up a message reminding the member to pay his membership for the forthcoming year. The file http://indianmensa.org/db/services/naming/namingXML.php returns the same output but parses it as XML. How to use these files to get a Member's name. Getting Member's renewal status with the help of these files is simple. You can write a funtion that calls this page and read its output.
Code Example
Say you are using PHP, your function would be as follows. <?php This was merely an example using the plain text file. If you wish to you can use the XML file reminderXML.php. The GET parameters remain the same only the output format differs. The XML file can be used with PHP's XML functions or for that matter with any other language that supports reading XML. The main reason for including the XML file was to support future projects that may incorporate AJAX.
Example AJAX Implementation (using remoteXML.php)
Membership No : |
|||||||||||||||||








