Here are the key point and where I am so far.
The requirements:
- I manage the website for a company who provide software to the Leisure Industry, installed locally at gyms and leisure centres around the UK.
- Currently members have to be entered in to the software manually by a member of staff, but we want to offer online signup to new clients and any of our 150 clients, probably only a handful will go for it.
- If needs be members could just submit details and pay on arrival but an online payment option would be beneficial and more professional.
- We could hold the form/scripts on their web-servers or link to our site and create a URL for each client. Each has benefits and drawbacks.
- Each client will have a list of membership types, prices, lengths and probably each want slightly different mandatory data.
- We'd prefer to be less involved with updating prices/types though our clients may not have IT or may not want to pay their IT separately.
- Our software is written in Delphi which I cannot yet read or alter. The members are held in advantage database tables (.ADT .ADI .ADM which open with data architect) with about 120 columns (urghhh) including forename, surname, tel, membership type, member ID, medical issues etc.
- I have a basic knowledge of batches, csv files, html forms and php but I'd be prepared to pick up more useful techniques.
Here's what I've done:
- I've created a form where a user enters basic personal and membership details from drop-downs. On submit their details are saved to a new line of the CSV file on the server by php. An email is also sent to the web-master.
- I've written a batch ftp script which can be run by the client to download the CSV from the web-server. I'm unsure how to add the CSV data to the .ADT by batch command. I may have to alter the software to import multiple members (it can currently import individual members from CSV) or create a separate app.
- In this simple case the new members choose to pay on arrival, but I can also include a paypal button or similar payment gateway. I will need this to send confirmation to my site so that the details are not added to the CSV file until they've paid.
Questions:
- Firstly can anyone suggest a better way than this? Can this method even viable/secure for commercial use? Am I way off the mark? If not...
- The batch/FTP script will hold server username and password. Is there a better way to secure this than file permissions?
- Should we host it on our server or theirs?
- How hard would it be to create a basic content management page them to login as admin and alter prices etc?
- How can I ensure payment before I write to CSV. Is there a particular payment gateway I need?
Apologies for the length, it's quite a precise requirement. I feel like there's a precise answer I'm overlooking.
If you're still reading any comments greatly appreciated.
Ian
Help
















