Hi guys,
Hope this is an easy one.
Im starting to learn about session variables, and having a slight hiccup :>)
The following is the head section of the page where i have used the session_start
==========================
==========
==========
==========
======= test.php
<?php session_start; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
>
<head>
<title>Vocab: Our List of Words</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="includes/sandbox.css
" />
</head>
--------------------------
----------
----------
----------
----------
---------
the following is also in testing.php and refers to setting a session variable...........
session_register("current_
sandbox_pa
ge");
$current_sandbox_page = basename($_SERVER['PHP_SEL
F']);
$current_sandbox_page = explode('_',$current_sandb
ox_page);
$current_sandbox_page[2] = substr($current_sandbox_pa
ge[2],0,-4
);
array_push($current_sandbo
x_page,"ou
tputiframe
.php");
$current_sandbox_page = implode('_',$current_sandb
ox_page);
<iframe name="outputIframe" width="100%" height="100%" src="sandbox/<?php echo $current_sandbox_page; ?>"></iframe>
#################
PROBLEM:
################
Guys if i browse to this page, I initially get a browser message...
"Internet Explorer cannot display the webpage"
If I then refresh the page, the page comes up.
If I comment out the line that says...
session_register("current_
sandbox_pa
ge");
the page loads on the first attempt.
I have tried putting this line up the top of my page just under session_start, but this makes no difference.
Any help greatly appreciated :>)
Start Free Trial