Re: Newforms and Hidden Fields - verifying POST data

2007-04-27 Thread Tipan
Having implemented this solution, I'm now getting problems with comparison differences between the hash that I pass in the form as a hidden field and the hash of the data taken from the Form view. If I look at the data before and after, it appears that the data from the form object is using carri

Re: Newforms and Hidden Fields - verifying POST data

2007-04-24 Thread Tipan
Simon, thanks for this post, it is beautifuly succint and comprehensive and is exactly what I was after. It has also enabled me to clean up my code, if I pickle all the date, I don't need to create a dynamic field form object, 2 fields are all that are required (as SmileyChris pointed out). A muc

Re: Newforms and Hidden Fields - verifying POST data

2007-04-23 Thread queezy
t; Sent: Monday, April 23, 2007 7:57 PM Subject: Re: Newforms and Hidden Fields - verifying POST data > > On Apr 23, 5:04 pm, Tipan <[EMAIL PROTECTED]> wrote: >> I'm seeking advice on how to ensure my form data in hidden fields is >> the same after the user has p

Re: Newforms and Hidden Fields - verifying POST data

2007-04-23 Thread Simon Willison
On Apr 23, 5:04 pm, Tipan <[EMAIL PROTECTED]> wrote: > I'm seeking advice on how to ensure my form data in hidden fields is > the same after the user has posted the form. Sign it. The easiest way to do this would be something like this: 1. Throw all of the data you want to persist in a pickle, t

Re: Newforms and Hidden Fields - verifying POST data

2007-04-23 Thread SmileyChris
On Apr 24, 4:04 am, Tipan <[EMAIL PROTECTED]> wrote: > I'm seeking advice on how to ensure my form data in hidden fields is > the same after the user has posted the form. If it's calculated data (somehow) then why do you need to pass it to the user? Couldn't you just calculate this data and add i

Newforms and Hidden Fields - verifying POST data

2007-04-23 Thread Tipan
I'm seeking advice on how to ensure my form data in hidden fields is the same after the user has posted the form. I've got a form instance containing my data and rendered this to html with the data in hidden fields. My Post then takes this data and stores it to a database. I'm passing it in hidde