Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SEND INVITATION

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
For my association of volunteers I like to include on the website something like "Send a invitation to a friend" as you seen on gmail. I like to have some ID how this works. I need a form, some validation. What do I send ? a URL + some text ? What PHP code is required ?
 
you will need a database and an smtp gateway. It is possible to do without a database, but clumsy.

the php code and html can be broken down into the following modules:

1. send email module
2. create unique ID module
3. store unique ID module
4. form to capture name and email address of friend
5. module to validate form input.
6. module to store form input in a database
7. module to receive an incoming email validation and to process it.
8 module to update user record with appropriate status flag.

i'd probably build many of these into a class for the user entity, personally.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top