Jump to content

Help with box not showing up.


Holsey

Recommended Posts

Okay so this code (not php, but i need php to make it all work) that when you click on the link it shows information below it.

Example:

Hello <<Clicked On

 

Hello is an english word for greeting people <<information

Well the links that you can click on are in a box that goes with the template and so is the information, but i want it so when a link hasn't been clicked on the box where the information would show is invisible then when you click on the link it shows up with the information inside the box.

 

<h2>Information Shower</h2>
<div class="box"><div class="box2">
<div id="loadarea2" style="width: 205px">

</div></div>
</div>

So there's the box with the information inside but when you first load the page the box is empty until a link above is clicked on, i have no idea how to make it so the box doesn't show until a link is clicked. Help please.

Link to comment
https://forums.phpfreaks.com/topic/161869-help-with-box-not-showing-up/
Share on other sites

u can do this with php too, but u need to refresh the page:

<?php
$hello = $_GET['hello'];
?>
<a href="<?php echo "{$_SERVER['PHP_SELF']}?hello=show";?>">Hello</a><br />
<?php if ($hello == "show") {echo "Hello is an english word for greeting people";}?>

But im not sure if this is what u want indeed.

Ted

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.