<?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>MachForm Community Forums Topic: Drop downs not entered into database correctly</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Drop downs not entered into database correctly</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 03:52:27 +0000</pubDate>

<item>
<title>yuniar on "Drop downs not entered into database correctly"</title>
<link>https://www.machform.com/forums/topic/drop-downs-not-entered-into-database-correctly#post-3248</link>
<pubDate>Wed, 08 Oct 2008 06:45:05 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3248@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Check the records on your &#60;strong&#62;ap_element_options&#60;/strong&#62; table.&#60;/p&#62;
&#60;p&#62;For your particular form_id and element_id, make sure the values on the column &#60;strong&#62;option_id&#60;/strong&#62; and &#60;strong&#62;option&#60;/strong&#62; are having the same values.
&#60;/p&#62;</description>
</item>
<item>
<title>kirbykm on "Drop downs not entered into database correctly"</title>
<link>https://www.machform.com/forums/topic/drop-downs-not-entered-into-database-correctly#post-3242</link>
<pubDate>Wed, 08 Oct 2008 01:58:38 +0000</pubDate>
<dc:creator>kirbykm</dc:creator>
<guid isPermaLink="false">3242@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I've done some meddling with the script so that I can incorporate a javascript function to add some of the fields. The idea is that someone selects a number from several drop downs and it adds them all together into a total field. I've gotten it to work on the front end, however I think that some of the code that I change has messed something up.&#60;/p&#62;
&#60;p&#62;I only modified the view-functions.php file. I change this line:&#60;/p&#62;
&#60;p&#62;$option_markup .= &#34;&#38;lt;option value=\&#34;{$option-&#38;gt;id}\&#34; {$selected}&#38;gt;{$option-&#38;gt;option}&#38;lt;/option&#38;gt;\n&#34;;&#60;/p&#62;
&#60;p&#62;to this:&#60;/p&#62;
&#60;p&#62;$option_markup .= &#34;&#38;lt;option value=\&#34;{$option-&#38;gt;option}\&#34; {$selected}&#38;gt;{$option-&#38;gt;option}&#38;lt;/option&#38;gt;\n&#34;;&#60;/p&#62;
&#60;p&#62;so that the value would be the same as the option name and could be added in the javascript function.&#60;/p&#62;
&#60;p&#62;What is happening is that when someone chooses say &#34;5&#34; from a list of 1, 2, 3, 4, 5 it puts &#34;4&#34; into the database. &#60;/p&#62;
&#60;p&#62;I'm not sure if this makes any sense, but if so, any help on this would be appreciated. It looks like all it is doing is entering the option before the selected option in the drop down list in the database.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
