On Sun, Sep 14, 2008 at 11:03 AM, Linly <[EMAIL PROTECTED]> wrote:
>
> Great thanks Dan, I found there is a missing 'comma' in your code
> (before 'savedata'). But it results only the last entry can correctly
> change the data field. Others don't change at all.
>
> I know a little bit more now about the '! equal' part, but don't why
> only one entry work, not all the list.
Sorry about the comma!
Try this form--it's even easier. I had a chance to test it...
[(search group=test* template=check)]
/*
[[#check]]
[(template first)][form][t]
[(template each)][r][c] {+p}
[c]{+:author}
[c][text author_{count} value="{+:author}"]
[session target_{count} {+p}]
[session if_{count} "! equal '{=author_{count}}' '{+:author}' ?
author={=author_{count}} , savedata_{count}=author"]
[session savedata_{count}]
[(template last)][t][submit][form]
[[#end]]
*/
I'm not sure why the other one wasn't working... But I completely
forgon about the {count} variable which is way better and faster.
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---