Switching between posts (Goes through all posts?) PHP
<p>Hello I have kind of a step-voting system, so when you click on continue, it goes to the next step.
I do not want to use sessions, therefore I am using POST to go to the next step and queries to call items.</p>

<pre><code>if (isset($_POST['continue']))
{
    if ($_POST['vote_page'] == 'site1')
    {
        $_POST['vote_page'] = 'site2';

    }

    if ($_POST['vote_page'] == 'site2')
    {
        $_POST['vote_page'] = 'site3';      

    }   
}
</code></pre>

<p>if clicked continue and at site 1, then go to site 2, etc.</p>

<pre><code>switch ($_POST['vote_page'])
{

case 'site1':
echo 'site1!';
break;

case 'site2':
echo 'site 2!!';
break;

case 'site3':
echo 'site 3!!!!!';
break;

}
</code></pre>

<p>But for some reason it loops through all of these posts, because the PHP is on the top of the script I think.</p>

<p><strong>Problem:</strong></p>

<p>From site1, it went to site3, ignoring site2...</p>

<p>How can I prevent this? or is there any other way to manage step-voting without sessions?</p>
