Making a Function-Activated Link Appear Without Having to Refresh Browser
<p>I'm trying to use the code below to make the <code>&lt;a href='http://www...com/.../footervote.php'&gt;Vote&lt;/a&gt;</code> link appear if a user logs in and a user shows up in the function <code>getEditorsList()</code>.  The vote link only appears if the browser is refreshed.  </p>

<p>Any idea how I could make the vote link appear without having to refresh the browser?</p>

<p>Thanks in advance,</p>

<p>John</p>

<p>index.php:</p>

<pre><code>&lt;?php 

 require_once "header.php"; 
 //content
 include "login.php";
 // more content
 require_once "footer.php";

?&gt;
</code></pre>

<p>In header.php:</p>

<pre><code>&lt;?php
error_reporting(0); 
session_start();
require_once ('db_connect.inc.php'); 
require_once ("function.inc.php"); 
$seed="0dAfghRqSTgx"; 
$domain =  "...com"; 

            $editors = getEditorsList();
            foreach($editors as $editor)
            {
            $editorids[] = $editor['loginid'];
            }

            if(in_array($_SESSION['loginid'], $editorids))
            {
            echo "&lt;div class='footervote'&gt;&lt;a href='http://www...com/.../footervote.php'&gt;Vote&lt;/a&gt;&lt;/div&gt;";
            } 


?&gt;
</code></pre>

<p>login.php:</p>

<pre><code>&lt;?php
if (!isLoggedIn())
{

    if (isset($_POST['cmdlogin']))
    {

        if (checkLogin($_POST['username'], $_POST['password']))
        {
            show_userbox();


        } else
        {
            echo "Incorrect Login information !";
            show_loginform();
        }
    } else
    {

        show_loginform();
    }

} else
{

    show_userbox();

}



?&gt;
</code></pre>
