[FX.php List] Multiple Login Methods

Jonathan Schwartz jonathan at eschwartz.com
Fri Apr 21 00:35:24 MDT 2006


Well.  Upgrade of my solution from  FMP6 to FM8 is back on track.

There is nothing like an elusive error to accelerate the learning 
curve. ;-). Thanks to Andy and Greg for jumping in.

On to bigger and better things...

Currently, users log in to the solution with a username and password 
(logon.php), which is processed (logon_validate.php) and delivers 
them to a detail.php page.  I would like to accomplish the same 
result by providing a link in an email that the user would receive. 
The unique link would have username and password embedded....or the 
equivalent.

Should I be creating a second set of logon pages to process the 
query?  And....how do I do that given the current method I'm using?

Essence of logon_validate code below, which gets the username and 
password from the logon.php page:

$query->AddDBParam ('username', $_POST['name'], 'eq');
$query->AddDBParam ('password', $_POST['pw'], 'eq');
$findResult = $query->FMFind();

if ($findResult['foundCount'] == 1) {


	$recID=current($findResult['data']);
	$internal=explode('.',key($findResult['data']));
	$internalRecID=$internal[0];

	include_once("detail.php");

}

Thanks,

Jonathan

-- 

Jonathan Schwartz
Schwartz & Company
817 Marin Drive
Mill Valley, CA 94941
Phone: 415-381-1852
jonathan at eschwartz.com - http://www.eschwartz.com



More information about the FX.php_List mailing list