3
Hi
thanks for your reply.
I am using the 404 trick as I am dealing with a club membership system and mostly computer illiterate people - I have designed it so that they just have to add their membership no on the end of the url instead of trying to explain the ?memb_id=10078 etc. It actually works pretty neatly.
I am now combining the membership system with XOOPS and want a person to have a personalised page by simply typing in the /10078. In my error404.php page i have extracted the member id and looked them up in the database and if existing assigned a few variables such as name level address etc which i wnat to make session variables that i can use in the main XOOPS template and page.
Its looking good but i cant seem to get the $_SESSION working - it works intermittently but not all the time.
It will be very neat if I can get it going. I think maybe there is a problem with $REQUEST_URI when using index.php??
To test if you create an error404.php page i.e
$urlsite=$REQUEST_URI;
$user=explode("/",$urlsite);
$memb_id=$user[2];
$_SESSION['memb_id'] = $memb_id;
header("location: index.php");
then
http://www.yoursite.com/10078Hope that explains things
Thanks for any suggestions (polie though please!!)
Regards
Tony