Adding form data to CMSB

8 posts by 2 authors in: Forums > CMS Builder
Last Post: October 7, 2008   (RSS)

By aev - October 1, 2008

Found a script in this post:
http://www.interactivetools.com/forum/gforum.cgi?post=64265#64265
..for adding form data to CMSB.

The script is pretty understandable, but it left me wonder how it can add data to my database without authenticating?

-aev-

Re: [aev] Adding form data to CMSB

By Dave - October 1, 2008

Hi aev,

Your MySQL login details are stored in /data/settings.dat.php and the line that loads /lib/init.php runs some code to automatically login.

So /lib/init.php is authenticating for you.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Adding form data to CMSB

By aev - October 2, 2008

Hi Dave,

ok, thanks for explaining this.

Will this code work in PHP 4.3.0+ and MySQL 4.1.7+, like the rest of CMSB?

-aev-

Re: [aev] Adding form data to CMSB

By Dave - October 2, 2008

Yes, it should. As it's the code we use ourselves to base forms on when we build them for custom jobs.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Adding form data to CMSB

By aev - October 6, 2008

Hi Dave,

I would like to add an image upload to this form, how can we do that?

-aev-

Re: [aev] Adding form data to CMSB

By Dave - October 6, 2008

We don't have an automated way to do that yet, unfortunately.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Adding form data to CMSB

By aev - October 6, 2008

Do you plan to release this as a feature or plug-in/add-on in the near future?


What I'm really trying to do here is to make another (custom) php script send an image and some text to the CMSB's database. Is this scenario making any difference than coming from a HTML form?

For the text part it was pretty straightforward to use the php part from the form inside my script.

-aev-