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.

CurrentToken displaying same results

Featured Replies

I've set some -Token variables on a start page:-

<FORM ACTION="FMPro" method="POST">

<input type="text" name="-Token.0" value="[FMP-field:dbasename]">

<input type="text" name="-Token.1" value="[FMP-clientusername]">

<input type="text" name="-Token.2" value="[FMP-field:Game title]">

<input type=submit name="-Find" value="View">

<input type=reset value="Reset this form" name="reset">

</FORM>

(I've set them as text for now for debugging purposes)

On the page, the text boxes display the correct text for each of the Token boxes.

When I click on the "View" button, I get taken to the correct page, where I display the contents of each of the set Token values:-

[FMP-Currenttoken:0]

[FMP-Currenttoken:1]

[FMP-Currenttoken:2]

Problem is that the contents of Token.2 is displayed for all three. What am I missing (apart from my patience)?

"What am I missing (apart from my patience)? "

If the form action which you posted is the complete code for that action, then I would say you are missing at least one line of code. That designating the -db.

"[FMP-field:dbasename]"? This indicates to me that you are already in contact with a database which has a field "dbasename" and which is populated with some data bit.

The cdml reference also offers the tag [fmp-currentdatabase], which might be more useful. It is all a matter of design.

"[FMP-clientusername]" This indicates to me that the client has already signed in. It also indicates to me that you are using Web Security protocol. Is that correct?

  • Author

Gahhh! I just read after trawling through old posts that FMP4 can only handle one Token at a time!

Is this true? What a load of crud!

Are there alternatives (I don't want to use cookies).

Dan

With single token you can program shopping cart -- see the FM example. It has some small bugs but it works.

I think you can also identify user from IP = another variable.

Not only does 4.0 limit you to one token, it also does not offer the inlineaction tag, which is extremely useful.

My site is constructed in 4.0. (No need for Unlimited) I solved a problem so that I could use protected ScritpMaker scripts to provide me with greater design versatility.

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.