Hi folks,
I'm working on allowing someone to connect to my site from their intranet. By clicking on a link on their intranet page, a POST variable called auth is sent to my site, specifically, to a logon processor page login_referred.php.
Now, the POST'ed auth variable actually has a pair of values in it consisting of my login credentials - the email address,a nd the username. So I have this code:
Now, this would seem to be working, but I can't be sure. If I uncomment the line where I set a value for $auth, it works fine, redirects and logs me in. If I comment it out as shown, it does not work.
I HOPE that my issue is with passing the auth over from the previous page. I made a dummy page with a button and a hidden field. I named the hidden field $auth and put the same value pair in it, dropped that hidden field and submit button on a form with action as login_referred.php, and tested it - nothing.
I thnk I'm not doing somethign right in my testing. How do I send over a POST variable "auth" with my selected values in it? How do I retireve those values?
What have I done wrong?
I'll take a man apge as always.
Regards,
and TIA,
Nedstar1
I'm working on allowing someone to connect to my site from their intranet. By clicking on a link on their intranet page, a POST variable called auth is sent to my site, specifically, to a logon processor page login_referred.php.
Now, the POST'ed auth variable actually has a pair of values in it consisting of my login credentials - the email address,a nd the username. So I have this code:
Code:
<?php
session_start();
include("include_nc.php");
//$auth=("HODGS01,ned@company.com");
extract($_POST);
$referral = explode(",",$auth);
$username = $referral[1];
$pwd = $referral[0];
Now, this would seem to be working, but I can't be sure. If I uncomment the line where I set a value for $auth, it works fine, redirects and logs me in. If I comment it out as shown, it does not work.
I HOPE that my issue is with passing the auth over from the previous page. I made a dummy page with a button and a hidden field. I named the hidden field $auth and put the same value pair in it, dropped that hidden field and submit button on a form with action as login_referred.php, and tested it - nothing.
I thnk I'm not doing somethign right in my testing. How do I send over a POST variable "auth" with my selected values in it? How do I retireve those values?
What have I done wrong?
I'll take a man apge as always.
Regards,
and TIA,
Nedstar1