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.

Validate unique username with Filemaker/PHP

Featured Replies

Hi there,

I am setting up a username/password system and need to be able to check whether a new username is unique. I have tried doing this with PHP without much luck. Is it better to PHP or the database itself to validate a field name. How do I get Filemaker to send a warning to the web browser if the username is not unique?

Cheers,

S

Hi S :P

Well, I don't do much FX.PHP as you probably know by now, but here's the theory:

1) Your processing Page:

a) Perform Search for a Username

:( If no records are returned - may come up as an error instead, then the username is unique, otherwise:

header("Location: yourMainPage.php?error=This%20username%20is%20taken.");

2) Your actual registration page aka "yourMainPage.php"

a) Check for an error:

if( isset($_GET['error']) ) {

echo ''.$_GET['error'].'';

}

... You know that probably wasn't very useful, but I still hope it helped - maybe come back with what you're specifically having trouble with?

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.