PDA

View Full Version : Help hiding data from drop downs


cocoonfx
06-24-2010, 10:44 PM
Hi


I have create a dynamic drop down list (using DJ TUT with some mods)

http://www.gossipxo.com/travel_guide.php

I want to hide all the info which is should in the div id = TravelInfo so it only appears when I select the Region and the Country. Does anyone have any ideas on how to do this?

davidj
06-25-2010, 08:31 AM
wrap a condition around the <div

<?php if(isset($_POST['country'])){ ?>

<div id="TravelInfo"....

<?php } ?>

cocoonfx
06-25-2010, 11:57 AM
Thanks DJ I will give this a go tonight