Contact form & store data

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 19, 2011   (RSS)

By gversion - July 19, 2011

Hello,

I have created a new Section Editor in cmsAdmin called "Enquiries". This has just two fields:

- Email address (textfield - required)
- Message (textarea - optional)

I would like to have an Enquiry form on a listing page that sends a message to the advertiser (i.e. the listing page owner).

On submitting the form, the data should also be stored in the cmsAdmin area under the Enquiries section.

Has anyone done something similar to this and would be willing to share the code? Or could someone tell me how to get this working?

Thank you,
Greg

Re: [gversion] Contact form & store data

By Jason - July 19, 2011

Hi Greg,

Here are a couple of posts to help get you started. The first is an example page ("addForm.php") which is used to write a record to the database:
http://www.interactivetools.com/forum/gforum.cgi?post=69273#69273

After that, you can use a CMS Builder function called sendMessage that you can use to send a message:

http://www.interactivetools.com/forum/gforum.cgi?post=87513#87513

Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/