[FX.php List] Use FMP Accts for CWP logins?

William Downs william.downs at gmail.com
Sat Feb 21 16:16:32 MST 2009


Hi Jonathon,

Just use the login details as the parameters in the FX instance -

 <form id="adrMain" action="adrMain.php" method="post">
            Email Address:<br />
            <input type="text" name="manEmail" value=""></input><br />
            Password:<br />
            <input type="password" name="manPassword" value=""></input><br />
            <input type="submit" class="a" name="manLogin"
value="Login"></input>
 </form>

Then on processing page

$dbUser            = $_POST['manEmail'];
$dbPassword    = $_POST['manPassword'];

$medList=new FX($serverIP,$webCompanionPort,'FMPro7');
$medList->SetDBData($fmFile,'MedList',$groupSize);
$medList->SetDBPassword($dbPassword,$dbUser);

$medListResult=$medList->FMFindAll();

But perhaps I am not understanding you properly ?

Kindest

WIlliam

On Sat, Feb 21, 2009 at 10:38 PM, Jonathan Schwartz
<jschwartz at exit445.com> wrote:
> In the past, I've always constructed dedicated User tables for use in user
> authentication (login) in my fx.php solutions.  Now, I have a project where
> there are dozens of potential authorized users that already have FMP account
> (name and password).
>
> I'm scratching my head trying to figure out how to use the existing FMP
> accounts in an fx.php login script, rather than recreate the data in a
> dedicated User table.
>
> How to do?
>
> J
>
>
> --
> Jonathan Schwartz
> Exit 445 Group
> jonathan at exit445.com
> http://www.exit445.com
> 415-370-5011
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>



-- 
William Downs
Development and Support
BD Databases Ltd


More information about the FX.php_List mailing list