Jump to content

Using a cookie in a link


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

Recommended Posts

Hi all,

I have set a cookie in a form and assigned a value to it. However, I want to later assign a the value stored in the cookie to a field in order to perform a find. But when I put the cookie in the link it doesn't work. I put it like this:

-snip-&interaction=[FMP-Cookie: usercode]&-snip-

When I click on the link I get the no records found error. If I then go to the filemaker database and select modify last find it pastes [FMP-Cookie: usercode] in the field instead of the value of the cookie. Can someone help me out here? Thanks in advance.

Link to comment
Share on other sites

code:


[FMP-Cookie: CookieName , Encoding ]

Parameter(s)

First parameter: Name of the cookie to return.

Second parameter (optional): Encoding. Use one of the following reserved words:

Raw - (default) Don't perform any encoding

URL - Perform URL encoding


Will this help?

Link to comment
Share on other sites

quote:

Originally posted by Anatoli:

code:

[FMP-Cookie: CookieName , Encoding ]

Parameter(s)

First parameter: Name of the cookie to return.

Second parameter (optional): Encoding. Use one of the following reserved words:

Raw - (default) Don't perform any encoding

URL - Perform URL encoding


Will this help?


Anatoli,

I don't know if that will help. I thought I should use maybe RAW encoding, but the thing is that it isn't putting the data, just the text [FM-Cookie: usercode]. I tried it with URL encoding, but that's what happened. I will try it with raw, but I think it will make little difference. Hoping you can help me sort this out. Thanks in advance.

Link to comment
Share on other sites

This topic is 8308 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.