PHP input code generator

5 posts by 3 authors in: Forums > CMS Builder
Last Post: May 6, 2011   (RSS)

By terryally - May 4, 2011

Is there a method to generate the PHP code for a completed section editor? i.e. the form that I will use to input data in the CMSB?

Why do I need it?

Well I want a client to use one of these forms to input data for me to work with but she wants to keep a record of the information. (She previously sent a Word document which is now replaced by an online form).

CMSB does not have the feature to email records when created. That leaves building a form on a normal webpage that will email the details when it is submitted. Before I start writing that, I wondered whether there is a way to generate the PHP from the completed form built with a section editor so that I do not have to do double work.

Re: [terryally] PHP input code generator

By gkornbluth - May 4, 2011

Hi Terry,

When this form is submitted I assume that it automatically creates (or updates) a record in your database table?

That form can be set up to then reflect the updated values in the database (sound kind of redundant but useful as confirmation of the update).

I guess that I'm not understanding correctly.

Is it that you want your client to be able to output a copy of the submitted data in say a csv format, or are you looking for something else?

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [terryally] PHP input code generator

By Jason - May 4, 2011

Hi Terry,

We don't currently have anything that automatically creates front end forms for you.

If you need to send an email alert when a record is added/modified in the backend, take a look a this post:
http://www.interactivetools.com/forum/gforum.cgi?post=79097#79097

This is a plugin created by a member of the forum community that sends emails when records are created/modified. This would probably be a good place to start as you could modify this plugin to fit your particular needs.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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

Re: [Jason] PHP input code generator

By terryally - May 6, 2011

Hi Jason,

This is brilliant. It does the trick. I am easily customise this to what I need.

Thanks. This has saved me a lot of work.

Terry