Jump to content

[SOLVED] if logged in


squiblo

Recommended Posts

<div id="wb_Shape2" style="position:absolute;left:54px;top:170px;width:793px;height:412px;z-index:10" align="center">
<img src="/Images/body_img.jpg" id="Shape2" align="top" alt="" title="" border="0" width="793" height="412"></div>

 

this is my image that i wont moving 34px from the top if someone is logged in, i have not got to learn any css yet

Link to comment
https://forums.phpfreaks.com/topic/167661-solved-if-logged-in/#findComment-884216
Share on other sites

<?php
session_start();
echo '<div id="wb_Shape2" style="position:absolute;left:54px;width:793px;height:412px;z-index:10;';
if(isset($_SESSION['myusername']))
{
echo 'top:204px;';
}
else
{
echo 'top:170px;';
}
echo '" align="center">
<img src="/Images/body_img.jpg" id="Shape2" align="top" alt="" title="" border="0" width="793" height="412"></div>';
?>

Link to comment
https://forums.phpfreaks.com/topic/167661-solved-if-logged-in/#findComment-884224
Share on other sites

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.