Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What happened when authentication to a database failed with FX PHP

Featured Replies

Hi all,

I am trying to create a login page and require the users to log in using a username and password. Once a user entered the username and password, I would use that username and password to login, do a find and return the result (does not know any other way to do it). Once the result is return, I can check the errorCode for 0 to see if the user login successfully or not. However, the main problem is that if a user entered the wrong username and password, and I used:

$errorcheck = $ReturnedData['errorCode'];

to check for the error code, it does not seem to work. The php page would stop parsing right at that line.

I turned on error debug for testing in FX PHP server_data.php, and I found this line pop up after the user entered the username and password and pressed login button:

http://afsdaf:[email protected]:80/fmi/xml/FMPXMLRESULT.xml?-db=lcc_applications_.fp7&-lay=Applicants&-max=50&__kp__ApplicationID=02641&-find

When I pressed that it asked me to enter a username and password as the username and password I entered before are wrong. Was FX PHP can not handle this as FileMaker did not seem to return an error or data?

Is there a work around for this or anybody see this same problem before?

Any help would be appreciated.

Thanks, Kevin Dang.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.