<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1024625" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1024625</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/save-data-multiple-selection#comment-1150457</link>
    <description> &lt;p&gt;Are you able to manipulate the data before it is entered into the database?&lt;/p&gt;
&lt;p&gt;i.e. are you using a server-side language at all? I&#039;m not familiar with the Oracle db and I&#039;m trying to understand enough to help you out. Being frustrated for weeks on end is no good! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Essentially, if there was no mechanism (such as forcing an array with name=&quot;var[]&quot; in the ), then I would take my options and loop through them pushing them into a string that I would store in my db.&lt;/p&gt;
&lt;p&gt;However, if there is the ability for the database to be relational in its design, I wouldn&#039;t want them to be pushed together in a string, but rather each a row in a lookup table with whatever other table they are associated with.&lt;/p&gt;
&lt;p&gt;I don&#039;t know how to explain this for Oracle, but perhaps one of those options is within your ability to implement?&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Apr 2004 20:32:31 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1150457 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/save-data-multiple-selection#comment-1150448</link>
    <description> &lt;p&gt;Hi,,&lt;br /&gt;
Thnaks for your kind reply. I use an Oracle database and procedures in the PL/SQL packages that make up the Web Application Server. As I said earlier, when form is submited in database I found only one of those selected options, the first one is saved in the database. I learned multiple selections options are selected, they are returned as an array: like  lo(0), lo(1), lo(2), etc But I want lo(0, 1, 2, ...) in one field of table. I&#039;ve been  working this for almost 2 weeks and still do not know how to figure out.&lt;br /&gt;
Need help!&lt;br /&gt;
Thanks.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Apr 2004 19:15:23 +0000</pubDate>
 <dc:creator>Oyuni03</dc:creator>
 <guid isPermaLink="false">comment 1150448 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/save-data-multiple-selection#comment-1150442</link>
    <description> &lt;p&gt;Seems like Oracle, btw.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://db.lib.vt.edu/ows-adoc/psqlwtlk.htm&quot; class=&quot;bb-url&quot;&gt;http://db.lib.vt.edu/ows-adoc/psqlwtlk.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Perhaps in there will be information on reading select forms. I can see how to create them, but not how to read them.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Apr 2004 18:14:06 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1150442 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/save-data-multiple-selection#comment-1150441</link>
    <description> &lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;So, just SQL? No database, no server-side language?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://hobbes.ncsa.uiuc.edu/phpdocs/faq.html.html#AEN63666&quot; class=&quot;bb-url&quot;&gt;http://hobbes.ncsa.uiuc.edu/phpdocs/faq.html.html#AEN63666&lt;/a&gt; if you scroll down just a bit, you can see that in PHP (server-side language), you would name the variable differently for one value, than for an array of values.&lt;/p&gt;
&lt;p&gt;What database (Oracle? MySQL? MS SQL? SQL Server? et cetera) are you using and what server-side language are you using? (Java, PHP, Perl, .NET, ASP)?&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Apr 2004 18:10:22 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1150441 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Using SQL package -</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/save-data-multiple-selection#comment-1150438</link>
    <description> &lt;p&gt;For HTML            FORM ACTION=&quot;/fima/owa/iad_pkg.insert.rec &lt;/p&gt;
&lt;p&gt;CREATE OR EPLACE PACKAGE iad_pkg IS&lt;/p&gt;
&lt;p&gt;PROCEDURE insert_rec(&lt;br /&gt;
      LeadOfc		IN varchar2);&lt;/p&gt;
&lt;p&gt;END iad_pkg;&lt;br /&gt;
/&lt;br /&gt;
SHOW ERRORS&lt;/p&gt;
&lt;p&gt;CREATE OR REPLACE PACKAGE BODY iad_pkg IS&lt;/p&gt;
&lt;p&gt;PROCEDURE insert_rec(&lt;br /&gt;
      LeadOfc 		IN varchar2) IS&lt;/p&gt;
&lt;p&gt;BEGIN&lt;/p&gt;
&lt;p&gt;htp.htmlOpen;&lt;br /&gt;
htp.headOpen;&lt;br /&gt;
htp.title(&#039;International Agreement Database&#039;);&lt;br /&gt;
htp.headClose;&lt;br /&gt;
htp.bodyOpen;&lt;/p&gt;
&lt;p&gt;   BEGIN&lt;br /&gt;
      INSERT INTO int_agreement&lt;br /&gt;
	VALUES(LeadOfc);&lt;br /&gt;
      COMMIT;&lt;br /&gt;
      htp.print(&#039;The record has been inserted to the table.&#039;);&lt;br /&gt;
      EXCEPTION&lt;br /&gt;
         WHEN OTHERS THEN&lt;br /&gt;
		htp.print(&#039;Unable to insert record caused by one or more&lt;br /&gt;
			       missing mandatory fields.&#039;||htf.br||sqlerrm);&lt;br /&gt;
   END;&lt;/p&gt;
&lt;p&gt;htp.print(&#039;&#039;);&lt;/p&gt;
&lt;p&gt;htp.bodyClose;&lt;br /&gt;
htp.htmlClose;&lt;/p&gt;
&lt;p&gt;END insert_rec;&lt;/p&gt;
&lt;p&gt;END iad_pkg;&lt;/p&gt;
&lt;p&gt;/&lt;br /&gt;
SHOW ERROR&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Apr 2004 16:32:34 +0000</pubDate>
 <dc:creator>Oyuni03</dc:creator>
 <guid isPermaLink="false">comment 1150438 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/save-data-multiple-selection#comment-1150432</link>
    <description> &lt;p&gt;JavaScript cannot write to a database.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Apr 2004 12:52:00 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1150432 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>language</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/save-data-multiple-selection#comment-1150430</link>
    <description> &lt;p&gt;I am using html and javascript.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Apr 2004 11:31:31 +0000</pubDate>
 <dc:creator>Oyuni03</dc:creator>
 <guid isPermaLink="false">comment 1150430 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/save-data-multiple-selection#comment-1150400</link>
    <description> &lt;p&gt;Your input should be an array. I&#039;m not sure with the language you&#039;re using what that format is, but in PHP it would be &lt;strong&gt;name=&quot;lo[]&quot;&lt;/strong&gt; instead of &lt;strong&gt;name=&quot;lo&quot;&lt;/strong&gt;, telling the scripting to collect all the options that are selected into an array instead of just a variable.&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Apr 2004 21:53:09 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1150400 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
