sock_s wrote:
> Thanks for the input. I was finally able to link my
relational pages. One new
> error I encountered is the variables are not passed
consistently to the pages.
With the small snippet of code that you have shown, it's a
wonder that
any information is being passed.
> <?php session_start();
> $_REQUEST['user']; <--------- This does nothing
> $StudentID = $_SESSION['user'];
> $_REQUEST['FamilyID1']; <----------- This does
nothing
> $FamilyID1 = $_SESSION['FamilyID1']; ?>
> <?php require_once('../../Connections/MySQL.php');
?>
What are you trying to do here? The two $_REQUEST variables
do nothing.
You're also assigning the value of $_SESSION variables to
ordinary
variables. Is that what you want to do? If so, is it really
necessary?
The value is already held in the $_SESSION variable, so you
would
normally use just that.
If you're trying to store a value passed through a form, you
should
normally do it like this:
<?php
session_start();
if (isset($_POST['user'])) {
$_SESSION['user'] = $_POST['user'];
}
?>
$_SESSION['user'] is then available on all pages that begin
with
session_start().
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/