I have a value that needs to be set in the form for processing, but I do not want the user to be able to edit this value. A hidden element will mostly fit my needs, but I'm concerned a clever user could enable the hidden field and change it.
Is there a validator or setting on the Hidden element that would require the submitted form value to be the same as when the form was rendered?
I don't think setIgnore(true)
fits my situation, as I do need Zend_Form to read that variable when processing the form.
Also as far as I know the setAttrib('readonly', true)
will not work either as this is just an HTML setting that can easily be overridden by the client.