I generated a variable by means of a select statement in a form.In the action script, I captured the variable inHTML Code:<label for="outcome">How do you want to move the needle?</label> <select class="medium" name="outcome" size="1" id="outcome"> <option value="revenue" selected="selected">Increased revenue</option> <option value="cost">Reduce costs</option> <option value="customer">Customer satisfaction</option> <option value="other">Other – Details below</option> </select>Now I want to display various information depending on the value of 'outcome'. I have triedPHP Code:$outcome = $_POST['outcome'];
which doesn't work. What am I missing?PHP Code:if ($outcome=="revenue")
{
?>
<p>Information about revenue.</p>
}




Bookmarks