Again, thank everyone for their suggestions. Actually, I have been looking into using sessions for this purpose. The bad thing is that I am using punbb forum, and when a member logs in they can go to their profile. Under their profile I have added a link (which they could not get to if they were not logged in obviously). In punbb, the address might look like profile.php?id=4. I got the link to pass that to the other script. When they click on the link, it will take them to script2.php?id=4.
GREAT!
Now, I need to make sure you can only get to script2.php?id=4 if you came from profile.php?id=4 (simple enough), AND I need to be sure that the user can click on any links on the script2 page without any errors (so there goes my http referer).
As far as the sessions go, punbb obviously is already using sessions and I am getting errors when trying to use another one. Maybe Im putting the code in the wrong spot?
Thanks!