I have a html page which includes the following PHP
<?
if ($toggle){
echo "
some html code to display text goes here
";
}
?>
When the page is first loaded there is no varable $toggle so the text should not be displayed.
The page is then posted to itself with ?toggle=yes tagged onto the page's URL. So the text should then display as I see it. However, the text in the echo statement displays immediately the page is locaded for the first time (no $toggle variable present)
What am I doing wrong please?
Graham