Jump to content

This topic is 8197 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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)?

Posted

"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?

Posted

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

Posted

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.

Posted

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.

This topic is 8197 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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