I’m trying to figure out how to make a div invisible when someone goes to http://www.mysite.com/examplepage.php, but is visible when someone goes to http://www.mysite.com/example.php?added=1. Could someone be wonderful enough to explain this to me? The purpose of the div is give a message to users directed to the ?added=1 page – oddly enough something this useful is surprisingly hard to find instructions for. I’m a beginner, so if it’s a simple thing to do I’d be really appreciative if someone gave me an example piece of code that would do this.
Thanks a lot
In your HTML/PHP template…
Though it would be better to process the flag in some controller code and then set a flag, so you don’t have to use the
isset()and the$_GETdirectly in your view.