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>
<TITLE>Today's Date</TITLE>
</HEAD>
<BODY>
<?php
$dbcnx=@mysql_connect("localhost","root","");
echo ( "<P> Connection established on $dbcnx</P>");
if (!$dbcnx) {
echo( "<P>Unable to connect to MySql Server at this time.</P>");
exit();
}
else
{ echo ("<P>Connected to My Sql Server on connection $dbcnx.</P>");
};
if (! mysql_select_db("DMS", $dbcnx)) {
echo( "<P>Unable 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