Page 1 of 1

hob_goblin thanks a mill! re: sessions ;o))

Posted: Tue Oct 15, 2002 6:05 pm
by Fari
thanks a lot for pointing me in the right direction! What the Williams/lane book on PHP forgets to mention is that there must not be any input preceding the session_register statement! and of course I had it after <HTML> blah blah balh... so with this:

Code: Select all

<?php 
  session_register('login'); 
  session_register('pwd'); 
  session_register('server'); 
  $login=$login_1;
  $pwd = $pwd_1;
  $server = $server_1;
?>
<HTML>
<HEAD>
     <META NAME="KEYWORDS" CONTENT="Db_tools">
  <TITLE>Test</TITLE>
</HEAD>
<BODY text="#1c651c" bgcolor="#FFFFff" link="#1c651c" vlink="#1c651c" alink="1c651c" noresize noscroll>
<?
  include 'includes.php';
it's working like a charm :lol:

thanks again!

sorry after an OUTput .. a wee typo!

Posted: Tue Oct 15, 2002 6:06 pm
by Fari

Posted: Tue Oct 15, 2002 11:14 pm
by hob_goblin
Glad I could help, That's what I'm here for.