End User web form that feeds CMS record?

4 posts by 2 authors in: Forums > CMS Builder
Last Post: October 12, 2010   (RSS)

By dougdrury - October 11, 2010

I have a need to gather some text and a file upload from a webform on the presentation layer of the site (not in the CMS) that feeds into a CMS table. I can create the form via HTML, and know PHP to get the document and POST info, but I am lost on how to nicely push it into the CMS data tables. I can look at the SQL tables and hack it by inserting into the CMS table and then referencing it in the cms_uploads table with a new insert using that record num, but was wondering if anyone else has had this request and you all had come up with a more elegant solution.

Thanks,
Doug

Re: [Jason] End User web form that feeds CMS record?

By dougdrury - October 12, 2010

Jason,
Thanks for that. That makes sense. As for assigning an upload to that record, can I just use the mysql_insert_id() call to get the record number and then create an entry in the uploads table that points to the file that got uploaded via the web form?

Re: [dougdrury] End User web form that feeds CMS record?

By Jason - October 12, 2010

Hi,

Yes, that should work. Let me know how it goes.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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