Hello,
I need to get some help in getting the following to work every-
time.
I am attempting to implement a simple affiliate type program
and I have my initial form called index.php that simple
tries to retrieve from a URL an id for the affiliate and add it
to a SESSION variable. The program then creates 3 frames and
populates them with the appropriate forms.
Everything works well execept the storing of the retrieved id
into the session variable.
I could use some assistance with getting this simple task
to work everytime. See my code below:
<?php
session_cache_limiter("private_no_expire");
session_start();
if (isset($GET['genmapid'])) {
if (!isset($SESSION['AFFID'])) {
$SESSION['AFFID']=$GET['genmapid'];
}
}
echo "<HTML> \n";
echo " <HEAD> \n";
echo " <TITLE>Generation Maps Main Page</TITLE> \n";
echo " </HEAD> \n";
echo " <frameset rows=\"80,\" FRAMEBORDER=\"0\" BORDER=\"0\">\n";
echo " <FRAME NAME=\"top\" SRC=\"./html/top.htm\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" SCROLLING=\"NO\" NORESIZE=\"NORESIZE\">\n";
echo " <frameset cols=\"180,\" FRAMEBORDER=\"0\" BORDER=\"0\">\n";
echo " <FRAME NAME=\"left\" SRC=\"./html/sidemenu.htm\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" SCROLLING=\"NO\" NORESIZE=\"NORESIZE\">\n";
echo " <FRAME NAME=\"middle\" SRC=\"./php/midpage.php\" MARGINHEIGHT=\"0\" SCROLLING=\"YES\"> \n";
echo " </frameset> \n";
echo " </frameset> \n";
echo "</HTML>\n";
?>