<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>End User web form that feeds CMS record?</title>
        <link>https://interactivetools.com/forum/forum-posts.php?End-User-web-form-that-feeds-CMS-record-71839</link>
        <description></description>
        <pubDate>Tue, 14 Apr 2026 08:36:49 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;End-User-web-form-that-feeds-CMS-record-71839" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [dougdrury] End User web form that feeds CMS record?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2207410#post2207410</link>
          <description><![CDATA[Hi,<br /><br />Yes, that should work.  Let me know how it goes.<br /><br />Thanks.<br />]]></description>
          <pubDate>Tue, 12 Oct 2010 13:27:16 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2207410#post2207410</guid>
        </item>
                <item>
          <title>Re: [Jason] End User web form that feeds CMS record?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2207409#post2207409</link>
          <description><![CDATA[Jason,<br />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?<br />]]></description>
          <pubDate>Tue, 12 Oct 2010 12:47:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2207409#post2207409</guid>
        </item>
                <item>
          <title>Re: [dougdrury] End User web form that feeds CMS record?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2207401#post2207401</link>
          <description><![CDATA[Hi Doug,<br /><br />To get information into the CMS from an HTML form, you'll need to insert a record directly into MySQL database.  This is pretty straight forward though.  If you have your line requiring viewer_functions.php:<br />example:<br />&lt;?php require_once(&quot;cmsAdmin/lib/viewer_functions.php&quot;);?&gt;<br /><br />you wont have to worry about any database connections, the script will take care of those for you.<br /><br />If you take a look at your section in the section editor, you'll be able to see the names of all of the fields in that table.  It's then just a matter of writing the INSERT statement.<br /><br />Here's an example to help get you started:<br /><br /><code>&lt;?php<br />  $query = &quot;INSERT INTO `{$TABLE_PREFIX}SECTIONNAME` SET<br />            createdDate                   =          NOW(),<br />            updatedDate                   =          NOW(),<br />            createdByUserNum              =          0,<br />            updatedByUserNum              =          0,<br />            dragSortOrder                 =          0,<br />            <br />            title                         =         '&quot;.mysql_escape(@$_REQUEST['title']).&quot;'&quot;;<br />            <br />            <br />    mysql_query($query) or die(&quot;MySQL Error:&quot;.mysql_error().&quot;&lt;br/&gt;\n&quot;);<br />?&gt;</code><br /><br />You would just keep filling fields just like &quot;title&quot; until you've filled all the fields you need.<br />You'll also replace &quot;SECTIONNAME&quot; with the name of your table.  The variable $TABLE_PREFIX is a global variable that stores the table prefix you decided on when you installed CMS Builder (ex: &quot;cms_&quot;).  So if your table name is cms_news, you would use `{$TABLE_PREFIX}news`.  This is good if you ever have to change your table prefix, your script will still work.<br /><br />The line:<br /><code>mysql_query($query) or die(&quot;MySQL Error:&quot;.mysql_error().&quot;&lt;br/&gt;\n&quot;);</code><br />submits the query to the database.  If successful, you'll be able to see the record displayed in CMS Builder.<br /><br />Hope this gets you started.  Let me know if you have any questions.<br />]]></description>
          <pubDate>Tue, 12 Oct 2010 11:08:41 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2207401#post2207401</guid>
        </item>
                <item>
          <title>End User web form that feeds CMS record?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2207369#post2207369</link>
          <description><![CDATA[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.<br /><br />Thanks,<br />Doug<br />]]></description>
          <pubDate>Mon, 11 Oct 2010 12:03:31 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2207369#post2207369</guid>
        </item>
              </channel>
    </rss>
  