[html-formfu] A simple form being troublesome - fixed

xaos at darksmile.net xaos at darksmile.net
Tue Jun 7 17:00:51 GMT 2011


Charlie,

Using the form below, and doing:

	$form->indicator("submit.x");

Worked.

Note the proper placement of the parameters in the
Image element and the absence of the "value:" keyword.

Thank you!

Here is the form:
----------------------------------------------
#
# @(#) Login template
#
---
auto_id: '%n'
auto_constraint_class: '%t'
#
auto_fieldset:
     legend: "Login"
#
# Start listing the form elements
elements:
   - type: Text
     name: username
     label: "User ID"
   - type: Password
     name: password
     label: Password
#
# Now add a nice button for the "submit action"
   - type: Image
     name: submit
     src: "/images/login/green_signon_button_not_pushed.gif"
     attrs:
       height: "23"
       width: "64"
       border: "0"
       id: "form_submit_button_label"
...
-------------------------------------------------
Quoting Charlie Garrison <garrison at zeta.org.au>:

> Good evening,
>
> On 7/06/11 at 1:58 AM -0600, xaos at darksmile.net wrote:
>
>> 0x02b0:  6464 6464 6464 2673 7562 6d69 742e 783d  dddddd&submit.x=
>> 0x02c0:  3237 2673 7562 6d69 742e 793d 3131 2673  27&submit.y=11&s
>> 0x02d0:  7562 6d69 743d 7375 626d 6974            ubmit=submit
>>
>>
>> Any ideas why I don't get the data even though it is definitely sent?
>
> At a guess, the form 'indicator' is not true. I can't see where
> 'indicator' is set in yoru code, but I'm guessing the form is looking
> at 'submit' element to determine if $form->submitted is true. But the
> form is sending 'submit.x' (& submit.y).
>
> Try changing indicator so any element can be used to make
> $form->submitted true. I can't recall specifics so check the doco. You
> may be able to set indicator to 'submit.x' as another option.
>
>
> Charlie
>
> -- 
>    Ꮚ Charlie Garrison ♊ <garrison at zeta.org.au>
>
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
>http://www.ietf.org/rfc/rfc1855.txt
>
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu






More information about the HTML-FormFu mailing list