lagartixa2001 Posted May 18, 2001 Posted May 18, 2001 Does it possible set a cookie that value is a result of inlineaction...? For example: I've a -db=A.fp5 with fieldB, fieldC, user_ID and a script that create a value for user_ID, called CREATE_ID. And I wrote this tag in my html page: [FMP-if:currentcookie:User_ID.neq.] [FMP-InlineAction: -db=A.fp5, -lay=web, fieldB="ValueB", fieldC="ValueC", user_ID={FMP-cookie:User_ID}, -new][/FMP-InlineAction] [FMP-else] [FMP-InlineAction: -db=A.fp5, -lay=web, fieldB="ValueB", fieldC="ValueC", -script=CREATE_ID, -new][/FMP-InlineAction] <<***>> [/FMP-if] <<***>> == I'd like to set a cookie with user_ID value, but I don't know how to do it... I tried [FMP-SETCOOKIE: User_ID=field:User_ID, EXPIRES=30 ] and the value allways is blank... Please help meeeeeeeeeeeeee!
scratchmalogicalwax Posted May 22, 2001 Posted May 22, 2001 Just a thought. Have you tried sticking the code to set the cookie in between the inline tags eg [inlineAction: etc etc ] set cookie [/inlineAction] NB database values returned from an inline action are available to replacement tags only when the replacement tags are placed between the opening and closing inline tag (as above). [ May 22, 2001: Message edited by: scratchmalogicalwax ]
Recommended Posts
This topic is 8654 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 accountSign in
Already have an account? Sign in here.
Sign In Now