This topic is locked
[SOLVED]

 Create Contact Form with PHPRunner

11/11/2014 11:41:43 AM
PHPRunner General questions
B
bioman author

Hi,

Is it possible to create a contact form in PHPRunner? I do not want to store the emails in a database but just want my users to be able to e-mail me questions and comments using a form. I want the form to be secure so that spammers can't use it to send spam. Can this be done in PHPRunner? If so, how? Thanks,

Brett

Sergey Kornilov admin 11/11/2014

Create contact form as an Add page of one of tables. Use BeforeAdd event to send the email and then return false; so record is not added to the database.
Check Classifieds template that comes with PHPRunner. clreply is the table, BeforeAdd is the event where email is sent.

B
bioman author 11/11/2014



Create contact form as an Add page of one of tables. Use BeforeAdd event to send the email and then return false; so record is not added to the database.
Check Classifieds template that comes with PHPRunner. clreply is the table, BeforeAdd is the event where email is sent.


Hi Sergey,

Thanks for the reply but I'm having some difficulty getting it to work. Nothing seems to happen when I click "save." I changed the e-mail settings to my own but an e-mail is never sent. I must be missing something. Is there an example or tutorial I could look at? Thanks for your help,

Brett

Sergey Kornilov admin 11/12/2014

If your email settings are correct (SMTP server address, username and password) email will be sent.
If you need more help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.