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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Fari
Forum Commoner
Posts: 42
Joined: Thu Sep 19, 2002 8:41 pm
Location: Timmins - Ontario

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

Post 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!
Fari
Forum Commoner
Posts: 42
Joined: Thu Sep 19, 2002 8:41 pm
Location: Timmins - Ontario

sorry after an OUTput .. a wee typo!

Post by Fari »

User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

Glad I could help, That's what I'm here for.
Post Reply