Jump to content

my PC does not intrepret php code any more


zoran

Recommended Posts

I peace of normal php code, saved in htdocs in xampp in a file :

<?

 

// check for session variables

session_start();

 

// load the script containing the common functions

require "forum.php";

 

// check to make sure this is a new visit to the page

if (!$_SESSION['logged_userID']) {

 

// if it is, show the greeting

setup_page ("Banja Forum","Ulaz");

echo "Dobro dosli na <b><span style='font-size:12pt; color:#CC9900;'>Banja Forum</span></b>. Ovdje mozete davati komentare o svemu sto zelite. Od vas trazimo samo pristojno ponasanje :)";

} else {

 

// if not, log the user out

session_destroy();

setup_page ("Izlaz", "Izlaz");

echo "Izasli ste sa foruma.";

}

?>

<BR>

<BR>

<A HREF="register.php">Novi korisnici kliknite ovdje da se <b>registrujete</b>.</A>

<BR>

<BR>

<A HREF="login.php">Registrovani korisnici, kliknite ovdje da se <b>login</b> na forum.</A>

</p></font>

<?

// nivo logo

echo"<br><br><br><br><br><a style = 'text-decoration: none; a:hover padding-bottom: 2px; border-bottom: 1px solid #61d260; ' href='http://nivodesign.com'><p style = 'font-family: Georgia, Times New Roman, Times, serif; font-size: 70%; letter-spacing: 0.1em; text-align: left;'>Nivo Design  © <span style = 'font-size: 0.7em; color:#CC9900; '>All Rights Reserved...</span></p></a>";

  ?>

When opened, apears on Firefox like this:

firefoxoutput.png

 

Can anyone help with suggestion what is wrong?

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.