RE: [PHP] Help needed with Sessions

2002-02-26 Thread Johnson, Kirk

Start here: http://www.php.net/manual/en/ref.session.php

You will need to call session_start() to initiate the session. You will also
need to register the variables you want in the session with
session_register().

Good luck!

Kirk

 -Original Message-
 From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 25, 2002 10:06 PM
 To: PHP List
 Subject: [PHP] Help needed with Sessions
 
 
 Hi all, 
 I am trying to get sessions to work to use to pass some data 
 around, but the
 values do not seem to be coming through - I've probably got 
 something basic
 wrong
 
 PHP version is 4.0.4pl1
 
 sources are 
 
 validate.php
 
 
 ?php
 include(header.inc);
 ?
 
 HTML
 HEAD
 TITLEToday's Date/TITLE
 /HEAD
 BODY
 
 ?php
 
 $dbcnx=@mysql_connect(localhost,root,);
 echo ( P Connection established on $dbcnx/P);
 if (!$dbcnx) {
   echo( PUnable to connect to MySql Server at this time./P);
   exit();
 }
 else
 { echo (PConnected to My Sql Server on connection $dbcnx./P);
 };
 
 
 if (! mysql_select_db(DMS, $dbcnx)) {
   echo( PUnable to connect to DMS database at this time./P);
   exit();
 }
 else
 { echo( Established connection to DMS db);
 };
 
 $whoid=10;
 
 ?
 
 A HREF=jtest.php?name=3?testlink/A
 
 /BODY
 /HTML
 
 
 
 and in jtest.php I have
 
 ?php
 include(header.inc);
 ?
 
 ?php
 echo In jtest values are $dbcnx $whoid;
 
 
 ?
 
 The connection establishes, but the values do not appear to 
 be there in the
 jtest page?
 
 Any ideas
 
 Thanks
 Janet
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Help needed with Sessions

2002-02-26 Thread William Lovaton

You can look at this articles too:

http://www.phpbuilder.com/columns/mattias2312.php3
http://www.phpbuilder.com/columns/mattias2105.php3

William.


El mar, 26-02-2002 a las 10:27, Johnson, Kirk escribió:
 Start here: http://www.php.net/manual/en/ref.session.php
 
 You will need to call session_start() to initiate the session. You will also
 need to register the variables you want in the session with
 session_register().
 
 Good luck!
 
 Kirk



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php