Skip 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.

Logging in to DB automatically from HTML page

Featured Replies

My users need to log in to a database with a username and password automatically when they first hit the index page.

At the moment the page is set up with a meta refresh that goes to the following -

<meta http-equiv="refresh" content="1;URL=http://test:[email protected]:443/FMPro?-db=Mams.fp5&-token.9=0&-token.7=0&-format=media-library/loggingin.html&-FindAll">

i.e.

<meta http-equiv="refresh" content="1;URL=http://[uSERNAME]:[PASSWORD]@[sERVER IP AND PORT]/FMPro?-db=[DATABASE]&-token.9=0&-token.7=0&-format=[FORMAT FILE]&-FindAll">

This works really well on a Mac from explorer, safari, firefox etc. It used to work on a PC a few months back till I came to do a bit of testing today! Now the PC internet explorer displays an invalid syntax message! Does anyone have any suggestions as to what is wrong for the PC?

Thanks

IE 6 has been changed to not allow this syntax anymore because it could be used to redirect a user to a site other than what the user intended.

Dana

  • Author

thanks. Is there any way around it?

I could try and change the database so there is no password need which is the effect I want (low level access to less records) as the only way to access the database is directly on the server or through my HTML pages.

The only ways I have found around this are:

Create a low level account with no real privileges and either a) Show the username and password right next to the link for the DB so public users can log in. : Enable guest access so no one needs to put in a password, but then create a layout where you can run a relogin script for privileged users to gain more access to the database.

I don't like option b because you can't mask passwords in filemaker fields, and you can't use custom or password dialogs in IWP. So option B would be better for CWP, but I like option a for purely IWP sites.

Dana

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.