This topic is locked

Email to original poster from 'View' page

2/8/2017 4:36:00 PM
PHPRunner General questions
C
ColinK author

New User building my first post-demo project.
On the Classified template with Sergy's help I was able to email the original record poster by replacing the original code
$email = $values["Email"];
with
$email=DBLookup("select email from clusers where username='".$_SESSION["userinfo"]."'");
which enabled either a guest or logged in user to send an email without knowing the original posters email address as it was a database lookup.
I have based my new project on the 'Events' template and have created a similar table to contain the required 'message' fields and added the above code and edited the 'before record added events' as per the 'Classified' template.
It doesn't work, I've spent all day trying and dont really know what to try or where to look next.
I 'just' need to be able to have guests and users to email the original listing without his email address being displayed to guests or users
Hope this makes sense, thanks

Sergey Kornilov admin 2/10/2017

I just wanted to say that answering this sort of question without seeing the whole project is difficult if not impossible.

C
ColinK author 2/11/2017



I just wanted to say that answering this sort of question without seeing the whole project is difficult if not impossible.


My first posting so I apologise Sergy, with hindsight I have to agree.