<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Is there a better way to link?</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Is-there-a-better-way-to-link-78847</link>
        <description></description>
        <pubDate>Sat, 10 Oct 2026 16:22:41 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Is-there-a-better-way-to-link-78847" rel="self" type="application/rss+xml" />

                <item>
          <title>Is there a better way to link?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231091#post2231091</link>
          <description><![CDATA[<p>Cool - thanks for that!</p>
]]></description>
          <pubDate>Fri, 28 Jun 2013 01:48:49 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231091#post2231091</guid>
        </item>
                <item>
          <title>Is there a better way to link?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231090#post2231090</link>
          <description><![CDATA[<p>Hi Tim,</p>
<p>Your process looks right.  The only issue you would run into is if they selected values in more than 1 drop down, your code would produce multiple links.  You can try this method that would eliminate that possibility:</p>

<p><code>&lt;?php<br /><br />  $pageName  = "";<br />  $recordNum = coalesce($record['article'], $record['report'], $record['event'], $record['pages']);<br />  <br />  if ($record['article']) {<br />    $pageName = "articleDetails.php";<br />  }<br />  elseif($record['report']) {<br />    $pageName = "reportDetails.php";<br />  }<br />  elseif($record['event']) {<br />    $pageName = "eventDetails.php";<br />  }<br />  else {<br />    $pageName = "pages.php";<br />  }<br />  <br />?&gt;<br /><br />&lt;a href = "&lt;?php echo $pageName;?&gt;?num=&lt;?php echo $recordNum;?&gt;" class = "actionButton"&gt;Read More&lt;/a&gt;</code></p>

<p>Hope this helps</p>]]></description>
          <pubDate>Thu, 27 Jun 2013 10:06:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231090#post2231090</guid>
        </item>
                <item>
          <title>Is there a better way to link?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231089#post2231089</link>
          <description><![CDATA[<p>Hi Guys,</p>
<p>I've currently got a multi-section "Featured Items" which allows you to create items on the home page, give it a title, image, description, then link to another part of the site.  The same function for "Side Items" and another for "Quick Links" etc.</p>
<p>In each of these section editors, I have the follow fields that allows the user to select where they want that record to link to;</p>
<blockquote>
<p>separator: "Choose one of the following items"</p>
<p>pulldown-list: select from database / articles / num / title</p>
<p>pulldown-list: select from database / events / num / title</p>
<p>pulldown-list: select from database / pages / num / title</p>
<p>pulldown-list: select from database / report / num / title</p>
</blockquote>
<p>I then use the following to link;</p>
<blockquote>
<p>&lt;?php if ($record['article']): ?&gt;&lt;a href="articleDetails.php?num=&lt;?php echo $record['article'] ?&gt;" class="actionButton"&gt;&lt;?php endif ?&gt;</p>
<p>&lt;?php if ($record['report']): ?&gt;&lt;a href="reportDetail.php?num=&lt;?php echo $record['report'] ?&gt;" class="actionButton"&gt;&lt;?php endif ?&gt;</p>
<p>&lt;?php if ($record['event']): ?&gt;&lt;a href="eventDetails.php?num=&lt;?php echo $record['event'] ?&gt;" class="actionButton"&gt;&lt;?php endif ?&gt;</p>
<p>&lt;?php if ($record['pages']): ?&gt;&lt;a href="pages.php?num=&lt;?php echo $record['pages'] ?&gt;" class="actionButton"&gt;&lt;?php endif ?&gt;</p>
<p>Read More&lt;/a&gt;</p>
</blockquote>

<p>Is there a better way?</p>]]></description>
          <pubDate>Wed, 26 Jun 2013 18:35:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231089#post2231089</guid>
        </item>
              </channel>
    </rss>
  