This topic is locked

E-mailing a specific record...

8/14/2006 6:16:48 AM
PHPRunner General questions
M
mmponline author

I have a simple form where basic details are listed of job opportunities.

If the user requires more info, he needs to click a button or link so that the specific record's info is sent together with his details (that he must fill in on a form) to a specific e-mail (the administrator's) on which the administrator can contact him with the details. See : [url=http://selectiverecruits.co.za/opportunities/Opportunities_list.php]
> IOW - a mail with the required data he needs to know more about, and his personal details (not in the database, must be sent to the client handling the opportunities. I used to work in a program that had an e-mail page where the user enters his info and it's sent with the data fields to the clients e-mail address. This program had several other limitations however.
At the moment I can use the send e-mail event, but the user that enquire' info is not sent as well.
Please help with ideas...

Alexey admin 8/14/2006

Stephan,
I suppose you can use Edit page for this.
Add fields with user's personal info to your table.

Make them the only editable fields, so when the user clicks on Edit link it can enter his personal details only.
Then add the code to BeforeEdit event to select the record from database, construct and send the email to admin.
Then redirect to list page to avoid saving user's data in database.
You need to be familiar with PHP to implement this.

M
mmponline author 8/15/2006

Thanks Alexey, I will give this a try asap, bit hectic at the moment. I'm sure we'll figure out something. There has always been a way in PHP Runner and your great support.
This e-mail feature could be something to consider for the new version. I'm sure it will be handy for many users.
Stephan