Here is the Top code:
<?
session_name(bgselect);
session_start();
session_unregister(bgpic);
if ($bgpic == "corey" || !isset($bgpic)) $bgpicture = "dismain1.jpg";
if ($bgpic == "spike"
$bgpicture = "dismain2.jpg";
if ($bgpic == "clown"
$bgpicture = "dismain3.jpg";
if ($bgpic != "corey" || $bgpic != "spike" || $bgpic != "clown"
$bgpicture = "dismain1.jpg";
echo $bgpic;
session_register(bgpic);
?>
Here is the body tag:
<body background="<? echo $bgpicture; ?>">
here is example link code:
<a href="switch.php?bgpic=corey" target="_self">switch</a>
i finally got it working so when i push buttons it changed the bg pic finally... now.. i added sessions.. and im not quite sure how they work.. i got them workign with my news script.. but i didnt really have to change value in a session... can you change a value of a session string once its registered? if not do i unregister it then re register? or can i just register it again with out unregistering? i dunno any help would be apprecaited.
thanks a bunch!
in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
<?
session_name(bgselect);
session_start();
session_unregister(bgpic);
if ($bgpic == "corey" || !isset($bgpic)) $bgpicture = "dismain1.jpg";
if ($bgpic == "spike"

if ($bgpic == "clown"

if ($bgpic != "corey" || $bgpic != "spike" || $bgpic != "clown"

echo $bgpic;
session_register(bgpic);
?>
Here is the body tag:
<body background="<? echo $bgpicture; ?>">
here is example link code:
<a href="switch.php?bgpic=corey" target="_self">switch</a>
i finally got it working so when i push buttons it changed the bg pic finally... now.. i added sessions.. and im not quite sure how they work.. i got them workign with my news script.. but i didnt really have to change value in a session... can you change a value of a session string once its registered? if not do i unregister it then re register? or can i just register it again with out unregistering? i dunno any help would be apprecaited.
thanks a bunch!
in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?