May 18, 200124 yr 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!
May 22, 200124 yr 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 ]
Create an account or sign in to comment