Hi everybody 🙂
I've got a script, that I have written to work with a login system.. basically it just authenticates the user, or registers them depending on a variable passed in the url.. the string to login is:
auth.php?action=login
and the string to register is:
auth.php?action=register
Now.. I want to include this into my website, but I am trying to keep a kind of 'template' design happening.. So I thought, Why not just include them? The problem is, I can't seem to pass the 'action=' variable along to auth.php from an include();..
I've tried:
include('auth.php?action=login');
and
$action = 'login';
include('auth.php');
But neither seem to work..
Does anybody have any advice or even a guess?
Thanks heaps 🙂