<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Multiple Forms on one web page</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Multiple-Forms-on-one-web-page-80610</link>
        <description></description>
        <pubDate>Wed, 19 Aug 2026 07:54:50 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Multiple-Forms-on-one-web-page-80610" rel="self" type="application/rss+xml" />

                <item>
          <title>Multiple Forms on one web page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239192#post2239192</link>
          <description><![CDATA[<p>Daryl:  you're a genius!</p>
<p>It worked.  Thank you.</p>
<p>Ragi</p>]]></description>
          <pubDate>Tue, 12 Jul 2016 15:55:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239192#post2239192</guid>
        </item>
                <item>
          <title>Multiple Forms on one web page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239191#post2239191</link>
          <description><![CDATA[<p>Can you try replacing the line 17 of historyAwards.php to:</p>
<p><code>'where'       =&gt; "num = '".mysql_escape(@$_REQUEST['title'])."'",</code></p>
<p>Please let me know if that works.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Tue, 12 Jul 2016 15:52:49 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239191#post2239191</guid>
        </item>
                <item>
          <title>Multiple Forms on one web page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239189#post2239189</link>
          <description><![CDATA[<p>Daryl:  No, I haven't tried the 'where'.  Just tried it.  No difference.</p>
<p>Attached are all 3 files.</p>
<p>Ragi</p>]]></description>
          <pubDate>Tue, 12 Jul 2016 15:27:27 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239189#post2239189</guid>
        </item>
                <item>
          <title>Multiple Forms on one web page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239188#post2239188</link>
          <description><![CDATA[<p>Ah, I see. When you select an award and click submit, it only displays the first record on the next page regardless of the award that you've selected.</p>
<p>Can you post your getRecords code from historyAwards.php file?</p>
<p>Have you tried 'where' =&gt; @$_REQUEST['award'], getRecords parameter?</p>
]]></description>
          <pubDate>Tue, 12 Jul 2016 15:04:05 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239188#post2239188</guid>
        </item>
                <item>
          <title>Multiple Forms on one web page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239164#post2239164</link>
          <description><![CDATA[<p>Daryl:  Actually, what happens is the the first dropdown, "Select a year in history" selects a record from $historical_notesRecord.  That works perfectly, no issues.  The second dropdown, "Select an award" selects a record from $awards_trophiesRecords.  But no matter what I do, it only displays the 1st record.  </p>
<p>You can try it on my sandbox at <a href="http://742sandbox.northernpenguin.com/history.php" rel="nofollow">http://742sandbox.northernpenguin.com/history.php</a></p>
<p>Ragi</p>]]></description>
          <pubDate>Fri, 08 Jul 2016 16:01:44 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239164#post2239164</guid>
        </item>
                <item>
          <title>Multiple Forms on one web page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239160#post2239160</link>
          <description><![CDATA[<p>Hi Ragi,</p>
<p>Can you confirm if I understand your question correctly:<br /><span>The "Select an award" select field options in the second form displays the records from </span><span>$historical_notesRecords and not from $awards_trophiesRecords?</span></p>
<p>In that case, to troubleshoot, I would check first if the two records contain the data that I'm expecting by displaying them, ie:</p>
<p><code>// add this below your getRecords function calls<br />showme($historical_notesRecords);<br />showme($awards_trophiesRecords);</code></p>
<p>If everything looks good, I will then construct the select fields for both records: no form tags, no submit button, just the select fields.</p>
<p>If both select fields display the records that you're expecting, add them to a form, then add them to their own form(the two forms you have), and so on.</p>
<p>With this process, we'll be able to pinpoint when/where/why the second select field is displaying records from the first one.<br />Please let me know what you've found.</p>
<p>Thanks,</p>]]></description>
          <pubDate>Fri, 08 Jul 2016 10:28:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239160#post2239160</guid>
        </item>
                <item>
          <title>Multiple Forms on one web page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239149#post2239149</link>
          <description><![CDATA[<p>Hi</p>
<p>I have created a web page that has two (for now) forms, each connected to different multi-record table.  The problem is, no matter what I do, the second form always displays the top record and nothing else.</p>
<p>This is the top code:</p>
<p><code>&lt;?php include 'common/includes/php_header.inc'; ?&gt;<br />&lt;?php<br />  // load record from 'history_overview'<br />  list($history_overviewRecords, $history_overviewMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'history_overview',<br />    'where'       =&gt; '', // load first record<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />    'limit'       =&gt; '1',<br />  ));<br />  $history_overviewRecord = @$history_overviewRecords[0]; // get first record<br />  if (!$history_overviewRecord) { dieWith404("Record not found!"); } // show error message if no record found<br /><br /><br />  // load list records from 'historical_notes'<br />  list($historical_notesRecords, $historical_notesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'historical_notes',<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));<br /><br />  // load records from 'awards_trophies'<br />  list($awards_trophiesRecords, $awards_trophiesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'awards_trophies',<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));<br />?&gt;</code></p>
<p>These are the 2 forms:</p>
<p><code>&lt;table&gt;<br /> &lt;tr&gt;<br /> &lt;td&gt;<br />  &lt;form method="get" action="historyNotes.php?"&gt;<br />  &lt;h2&gt;Select a year in history:&lt;/h2&gt;<br />    &lt;select name="year"&gt;<br />      &lt;option value=""&gt;--&lt;/option&gt;<br />      &lt;?php foreach ($historical_notesRecords as $listRecord): ?&gt;<br />        &lt;option value="&lt;?php echo htmlencode($listRecord['num']); ?&gt;" &lt;?php selectedIf($listRecord['num'], @$_REQUEST['year']); ?&gt;&gt;<br />          &lt;?php echo htmlencode($listRecord['title']); ?&gt;<br />        &lt;/option&gt;<br />      &lt;?php endforeach; ?&gt;<br />    &lt;/select&gt;<br />    &lt;br&gt;<br />    &lt;input type="submit" value="Submit"&gt;<br />    &lt;/form&gt;<br /> &lt;/td&gt;<br /> &lt;td&gt;<br /> &lt;form method="get" action="historyAwards.php?"&gt;<br />  &lt;h2&gt;Select an award:&lt;/h2&gt;<br />    &lt;select name="title"&gt;<br />      &lt;option value=""&gt;--&lt;/option&gt;<br />      &lt;?php foreach ($awards_trophiesRecords as $awardRecord): ?&gt;<br />        &lt;option value="&lt;?php echo htmlencode($awardRecord['num']); ?&gt;" &lt;?php selectedIf($awardRecord['num'], @$_REQUEST['award']); ?&gt;&gt;<br />          &lt;?php echo htmlencode($awardRecord['title']); ?&gt;<br />        &lt;/option&gt;<br />      &lt;?php endforeach; ?&gt;<br />    &lt;/select&gt;<br />    &lt;br&gt;<br />    &lt;input type="submit" value="Submit"&gt;<br />&lt;/form&gt;<br /> &lt;/td&gt;<br /> &lt;/tr&gt;<br /><br />&lt;/table&gt;<br /></code></p>
<p>Any ideas would be greatly appreciated!</p>
<p>Ragi</p>]]></description>
          <pubDate>Thu, 07 Jul 2016 09:39:54 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239149#post2239149</guid>
        </item>
              </channel>
    </rss>
  