<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Appnitro Software Forums Topic: adding new field to database</title>
<link>http://www.appnitro.com/forums/</link>
<description>Appnitro Software Forums Topic: adding new field to database</description>
<language>en</language>
<pubDate>Thu, 11 Mar 2010 19:52:46 +0000</pubDate>

<item>
<title>jerbourq on "adding new field to database"</title>
<link>http://www.appnitro.com/forums/topic/adding-new-field-to-database#post-3777</link>
<pubDate>Sun, 23 Nov 2008 02:59:24 +0000</pubDate>
<dc:creator>jerbourq</dc:creator>
<guid isPermaLink="false">3777@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;thank you very much, worked like a charm .
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "adding new field to database"</title>
<link>http://www.appnitro.com/forums/topic/adding-new-field-to-database#post-3741</link>
<pubDate>Thu, 20 Nov 2008 14:17:58 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3741@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;This one is pretty simple actually. You only need to modify save.php file.&#60;br /&#62;
Let say your field name is &#60;strong&#62;form_creator&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Search around line 82 - 91 of save.php, you should see this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form_input[&#38;#39;form_id&#38;#39;] 			    = $form_id;
$form_input[&#38;#39;form_name&#38;#39;] 			= $form_object-&#38;gt;name;
$form_input[&#38;#39;form_description&#38;#39;] 	= $form_object-&#38;gt;description;
$form_input[&#38;#39;form_redirect&#38;#39;] 		= $form_object-&#38;gt;redirect;
$form_input[&#38;#39;form_success_message&#38;#39;] = $form_object-&#38;gt;success_message;
$form_input[&#38;#39;form_password&#38;#39;] 		= $form_object-&#38;gt;password;
$form_input[&#38;#39;form_unique_ip&#38;#39;] 		= $form_object-&#38;gt;unique_ip;
$form_input[&#38;#39;form_captcha&#38;#39;] 		= $form_object-&#38;gt;captcha;
$form_input[&#38;#39;form_review&#38;#39;] 			= $form_object-&#38;gt;review;
$form_input[&#38;#39;form_frame_height&#38;#39;] 	= $form_object-&#38;gt;frame_height;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;right below those lines, add your own line:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form_input[&#38;#39;form_creator&#38;#39;] 	= $_SESSION[&#38;#39;user_name&#38;#39;];&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>jerbourq on "adding new field to database"</title>
<link>http://www.appnitro.com/forums/topic/adding-new-field-to-database#post-3731</link>
<pubDate>Wed, 19 Nov 2008 22:40:25 +0000</pubDate>
<dc:creator>jerbourq</dc:creator>
<guid isPermaLink="false">3731@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hello, &#60;/p&#62;
&#60;p&#62;I`m trying to modify the functionality of machform to include another field to the ap_form table.  I saw something similar to this in the forum.&#60;/p&#62;
&#60;p&#62;So in the edit_form.php file I add this.&#60;br /&#62;
if(!empty($row)){&#60;br /&#62;
		$form-&#38;gt;id 				= $form_id;&#60;br /&#62;
		$form-&#38;gt;name 			= $row['form_name'];&#60;br /&#62;
		$form-&#38;gt;description 		= $row['form_description'];&#60;br /&#62;
		$form-&#38;gt;redirect 		= $row['form_redirect'];&#60;br /&#62;
		$form-&#38;gt;success_message  = $row['form_success_message'];&#60;br /&#62;
		$form-&#38;gt;password 		= $row['form_password'];&#60;br /&#62;
		$form-&#38;gt;frame_height 	= $row['form_frame_height'];&#60;br /&#62;
		$form-&#38;gt;unique_ip 		= $row['form_unique_ip'];&#60;br /&#62;
		$form-&#38;gt;captcha 			= $row['form_captcha'];&#60;br /&#62;
		$form-&#38;gt;review 			= $row['form_review'];&#60;br /&#62;
		$form-&#38;gt;newfield			= _session['newfield']&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;The new field doesn't have to be entered by the user. It should come from session data and be added to every new form so I can keep track of who's creating a form. I know the function required is in javascript and the javascript is obfuscated so i'm wondering if there's a function call that I would need to add newfield to the database table ap_forms.&#60;/p&#62;
&#60;p&#62;Can you lead in the right direction.  Thank you very much for your helpo.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
