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.
Cheers,
linly
On Sep 14, 8:58 pm, "The Editor" <[EMAIL PROTECTED]> wrote:
> On Sat, Sep 13, 2008 at 6:05 AM, Linly <[EMAIL PROTECTED]> wrote:
>
> > I want to use [text field "myvalue"] to set different value to
> > different pages. This code can save the field "ezsort", but it can't
> > get the right value I put into the field box:
>
> Your problem is your are saving the value as ezsort_1, ezsort_2, etc,
> but then retrieving ezsort back into the form. So it's not working.
>
> I think you want to change the template to look something like this:
>
> [[#check]]
> [(template first)][form][t]
> [(template each)][r][c] [[{+p}|+]]
> [c]{+:ezsort} [text ezsort_{(counter = output=true)} value="{+:ezsort}"]
> [session target_{(counter = output=true)} {+p}]
> [session if_{(counter = output=true)} "! equal '{=ezsort_{(counter =
> output=true)}}' '{+:ezsort}' ? ezsort={=ezsort_{(counter =
> output=true)}} savedata_{(counter = output=true)}=ezsort"]
> [session savedata_{(counter = output=true)}]
> [(template last)][t][submit][form]
> [[#end]]
>
> Can't test right now, but let me know if it works! Or if you don't
> understand WHY it works. (More important).
>
> 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
-~----------~----~----~----~------~----~------~--~---